Redirect all traffic from one IP through OpenVPN site to site connection
-
Hoping someone can point me in the right direction….
I have managed to create an OpenVPN tunnel between two sites on two PFSence boxes. (one in Uk and one in germany).
What I would now like to do is route all traffic from an IP address on the German network through the UK internet connection. I am assuming this will be some form of route??
Any help would be really appreciated.
-
I am no expert with that configuration but it could work if you assign your OpenVPN as an interface. This interface can then be used as a "gateway" on your LAN firewall rules for the particular client you want to rout all traffic through OpenVPN. If I am not completely wrong then the interface mode of OpenVPN should be "none" and not DHCP, static or something else.
I am not sure if this is the correct way.
-
Once you assign the VPN interface – Interfaces > (assign), add the interface, then enable it with an IP type of 'none' and restart that VPN instance -- you'll get a gateway entry automatically. Once you have the gateway entry, you can craft a firewall rule to catch the traffic from the IP you want and force it to use that VPN gateway.
You will have to make sure that NAT will apply to that traffic, either locally as it leaves the VPN interface, or remotely at the other side of the VPN, or it won't make it out to the Internet.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy