How to setup an Openvpn server with two gateways to internet

Posted by fourat on Server Fault See other posts from Server Fault or by fourat
Published on 2012-08-29T08:57:07Z Indexed on 2012/08/29 9:40 UTC
Read the original article Hit count: 194

I have an openvpn server behind two wan interfaces: eth1 and eth2 where eth1 is the default gw and eth2 is where openvpn binds to.

The problems my ovpn server is replying back to ovpn client via the default gw (through eth1) and the tcp negociation is lost before establishing any tunnel.

Here's what's happening:

 wan client -----> eth2 ----> openvpn -----> eth1 ----> lost and not delivered back to client

Is there a way to tell ovpn to stick on eth2 and consider it for all traffic ?

© Server Fault or respective owner

Related posts about networking

Related posts about routing