2 different VPN Tunnels over 2 different interfaces

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
marcel.kaus
OpenVpn Newbie
Posts: 1
Joined: Fri Mar 01, 2013 1:19 pm

2 different VPN Tunnels over 2 different interfaces

Post by marcel.kaus » Fri Mar 01, 2013 1:29 pm

Hi there,

i was trying to establish 2 different vpn connections from a Client System.
The thing is that the 2 different connections should go over 2 different device, eth0 and usb0 ( umts modem ).
The OpenVPN server is reachable over both interfaces. But both tunnels are established only over one interface.
How do i tell OpenVPN what interface it should use to establish the connection?

my .conf looks like this

Code: Select all

#Client Configfile

dev tun0

remote foo.bar

port 1194
proto udp

script-security 2

ifconfig 10.1.1.1 10.1.1.254
secret static.key
Thanks

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: 2 different VPN Tunnels over 2 different interfaces

Post by maikcat » Fri Mar 01, 2013 1:58 pm

hi there,

not an openvpn's issue,but routing one...

create static routes to your router so it can route
traffic to your servers accordingly..

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply