Push only one IP over Wireguard VPN but allow internet access on the client for all other requests
I need to connect a remote laptop to my home network for one specific task on one IP address. I don't want to pass the rest of the traffic down the tunnel.
I've got WireGuard VPN working perfectly on FWPurple, and was looking to edit the [Peer] section of the profile to only allow the 1 IP address through.
e.g. AllowedIPs = 192.168.2.160
This works great and I get a remote connection to the specific computer I want in the home network, but WireGuard then blocks all other internet traffic on the client - obviously as they aren't 'allowed'.
It is possible to have it set up so that WireGuard only tunnels this one address, but all other network activity goes on outside of this?
try adding /32 to the end of that IP address. (192.168.2.160/32) that should tell it to only allow that single IP address to go through that connection.
I typically tell it 192.168.2.0/24 which says anything in that subnet is allowed to go through, and all other to go through default gateway. the /32 bit limits it down to just that ip.
Please sign in to leave a comment.