You are not logged in.

#1 2012-03-26 20:40:40

Pyrobisqit
Member
Registered: 2011-05-26
Posts: 23

[Solved] OpenVPN (in on one interface, out on another interface)

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 smile

Last edited by Pyrobisqit (2012-04-01 17:41:14)

Offline

#2 2012-03-26 22:29:59

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: [Solved] OpenVPN (in on one interface, out on another interface)

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

Offline

#3 2012-04-01 17:40:45

Pyrobisqit
Member
Registered: 2011-05-26
Posts: 23

Re: [Solved] OpenVPN (in on one interface, out on another interface)

Thanks, I'll look into it!

Offline

Board footer

Powered by FluxBB