connect to openVPN server via specific LAN Interface or GW

How to customize and extend your OpenVPN installation.

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

Post Reply
Tekener
OpenVpn Newbie
Posts: 2
Joined: Tue May 22, 2012 10:35 pm

connect to openVPN server via specific LAN Interface or GW

Post by Tekener » Tue May 22, 2012 10:55 pm

Hi.

I have a windows 7 client computer with more than one Network Card, and I have more than one Internet Connection. (2 Network Cards, 3 Internet Uplinks)

OpenVPN should connect via a specific Internet Connection.
My openVPN Server has only one IPv4 Adress. And, I need more than one OpenVPN connection at the same time.
Every VPN Connection should use another Internet Uplink.

So I can't use simple static routes on the client machine to define which internet connection is used.

So, I need to configure, wich Ethernet Card or Gateway OpenVPN should use for establishing the VPN connection.

How can I do that?

And, how can I configure, that OpenVPN uses all three Internet Connections for seamless Failover?

Thank You and Best regards

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: connect to openVPN server via specific LAN Interface or

Post by janjust » Wed May 23, 2012 8:38 am

you can use

Code: Select all

local IP
to bind the openvpn client to a particular local IP (and hence, network card).

As for seamless failover: 100% seamless failover is quite hard to do, as existing connections might be dropped. You can set up three openvpn clients that connect to the same server and play with the routing metric; if a client then fails the next route is automatically picked by the OS.

Tekener
OpenVpn Newbie
Posts: 2
Joined: Tue May 22, 2012 10:35 pm

Re: connect to openVPN server via specific LAN Interface or

Post by Tekener » Wed May 23, 2012 4:21 pm

Thank you very much.
This was helpful.

Greetings

Post Reply