Route selective traffic through OpenVPN but not firewall generated traffic
-
Hello,
I'm created an OpenVPN client that I will use to direct selective traffic through. I have been able to create firewall rules and am able to select this interfaces gateway and that traffic is indeed sent through the OpenVPN tunnel - so this works great.
My problem is that OpenVPN now directs all traffic from the firewall itself through this tunnel also. So if I run a process on the firewall like ping it goes through the tunnel. How do I stop this? I don't see any obvious way to make the "default" route the highest priority again
Route table on PFSense
Internet:
Destination Gateway Flags Netif Expire
0.0.0.0/1 x.x.x.x (VPN gateway) UGS ovpnc6
default y.y.y.y (Local Cable) UGS em1 -
On your vpn client connection check/uncheck pull routes.. So it does not set it as the default route.
-
Oh that did it..thanks. I thought that would have broken my policy based routing as well but it seems to still work.