Routing specific IP through OpenVPN connection, everything else as normal.
-
I am looking for the best approach to route a specific host on my network through an OpenVPN connection running on pfSense. All DNS lookups and traffic coming and going involving this host should route through the VPN.
So far, I have configured an OpenVPN server remotely, and verified it can be connected to via my laptop and route internet traffic through it. That part seems fine.
I can also configure the connection in pfSense as a client connection and it appears to connect. When I go to the pfSense main status page, I see the connection as up.
I’ve gone to Interfaces (Assign) and added a new interface from the dropdown, specifying the active VPN connection. The only thing I did at this point was enable and rename the interface. All interface options were left blank/none. After restarting the OpenVPN connection, the interface IP matches that of the Client OpenVPN connection virtual IP.
At this point - I am a bit lost as to what else needs to be configured in order for this to work (if I am even approaching this problem correctly). I have set a floating rule that says traffic leaving the host 10.0.10.122 is to use the VPN gateway. Do I need to define some sort of route?
I don’t mind starting over from scratch, I have been hitting a wall with this for several days now. Any guidance would be greatly appreciated.
-
Sounds like you did the pfSense part correct (assign the interface, use policy routing on the rule) – make sure the far side is passing through the traffic and performing NAT on the traffic exiting from that local client. That part is up to the far side, not pfSense.
You could try doing outbound NAT on the pfSense side on the assigned OpenVPN interface, but that could end up with double NAT and problems on the far side also.
-
I have the same issue with the VPN. And same config.
Can you recommend the VPN provider?