You are not logged in.
Hello, folks. I've been looking for OpenVPN tutorials everywhere, but I can't find one that tells me how to set up an OpenVPN server in the way, I connect to it using (for example) 1.2.3.4, and the traffic exits at 1.2.3.5.
I have two network interfaces connected directly to the Internet, each one give me a different IP. I'd like the OpenVPN server to ONLY listen in 1.2.3.4 (let's name it eth0) and route the traffic through 1.2.3.5 (eth1).
Is this possible? And either way, how is it achieved?
Thanks
Last edited by Pyrobisqit (2012-04-01 17:41:14)
Offline
It has nothing to do with OpenVPN since routing happens "lower" than the OpenVPN protocols... You need to use connection tracking/marking in iptables to Source NAT packets to the appropriate address.
This script might help point you in the right direction. I don't think it will do exactly what you want, but it might help you work out the conn marking etc
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Thanks, I'll look into it!
Offline