Openvpn,Ipsec L2TP, Iptables

Viewed 15

i try to get 2 VPNs on the same machine to work like a double tunnel. I have an L2TP IPSEC vpn server running, and i can connect with my client PC. On the Server is an openvpn client running, which tunells the traffic out to the public web. When the Openvpn client on the remotesrver is connected, it adds a default route so that all traffic is routed to the openvpn client tunnel.

My problem is, when the openvpn connection is established, it's impossible to connect with my pc to the server via L2TP ipsec. The connection traffic like, Authentication request, token request, handshake and so on is alsow routed into the openvpn client, the handshake is never receiving my pc.

When i kill the openvpn connection, or remove the route 128.0.0.0/1 via tun0, the connection can be established. When i then restart the Openvpn client on the server everything works perfectly fine, but i can't establish an L2tp connection while the openvpn client is running on the server.

Is there any way to get the l2tp connection established, while the openvpn connection is established, and after the authentication the traffic should tunnel through openvpn, not before the connection.

enter image description here

0 Answers
Related