Routing specific traffic to OpenVPN connection
-
Hello there,
I have set up a OpenVPN client in pfSense and I'd like to redirect all traffic from LAN to internet through this OpenVPN tunnel.
To do this, I have followed :The two sites are giving almost the same configuration, but my setup don't work.
When I go to ifconfig.co, I still had my ISP public IP in place of the VPN provider's public IP.
My OpenVPN client tunnel is OK :
I have setup an interface as mentionned in the howto :
I have setup a gateway :
Created a firewall rule like this :
I rebooted pfSense to be sure, but same result.
What should I check to make this work ?Thanks !
-
Forgot to mention the Outbound NAT rule :
-
@tabtab
Basically it should work with this rule as long as there is no floating rule overriding it.Maybe you had an already opened connection as you did the IP check?
-
Hello @viragomann,
I don't have any floating rule.
To be very very sure, I restarted pfSense and my PC, same result...
I really don't understand, it's no complex configuration...
Thanks ! -
@tabtab
Check out Status > Gateways, fi the VPN gateway online.
If it's not, the rule is omitted for sure. -
@viragomann You're totally right !
The gateway was marked as down but ping to 1.1.1.1 from it works.
I changed the monitor IP, the gateway goes to UP and the traffic is OKMany many thanks ;)