Wireguard to vpn provider only for a specific subnet, how?
-
I've followed instructions from this link:
pfSense Wireguard client setup
If I want only a specific VLAN/subnet (I have main LAN, and a few VLAN subnets which will access normal internet), not all subnets, to go through my provider VPN (vpnunlimited), what are the suitable setup tweak I have to make.
Thanks
ps. I have installed WireGuard and set up peers for my laptop and mobile phones. It works properly. -
@bthoven Search the forum for policy based routing, it’s a subject that comes up multiple times.
-
@nogbadthebad Thanks. I got it working with only a few steps, without any routing. Just create a new tunnel, new peer, new interface, and a new vpn gateway, based on setup config obtained from vpnunlimited. Then just create a firewall rule to allow, in my case, a whole subnet address to access all via the new vpn gateway. The chosen subnet belongs to one ssid I created just for Wireguard vpn connection.
I will write a more detailed instruction and post it here very soon.
Update: I've just posted my more detailed instruction here:
Instruction-WireGuard to VPN Provider only for a specific subnet