I have 3 Linux server, and I created a VPN coneciton between them.

First server:

  • Installed Openvpn server , working but I comment this line push "redirect-gateway def1 bypass-dhcp" becuse I need this connection to specific ip not to whol conneciton
  • This server can rech to the internet for example with this IP
  • And can reach to this IP which is the important becuse I only can reach it form this server
  • IP for tunnel

Second server

  • Aso installed openvpn and use the client mode to establish with first server
  • Ping between then is OK
  • IP to the internet for example
  • IP for tunnel
  • I can't access to the

The problem:

I need when I ask about to reach it from the second server for that i made tunnel between them and for that i made route like this

For second server: route add -net netmask gw (which is gw for the tunnel in second server)

for the first server: route add -net netmask gw (which is gw for the ethernet for server 1 which i use to reach in usual without problems)

I add also for return in first server:

route add -net netmask gw (which is gw for tunnel in first server)

Unfortunety when I'm ping from second server to there is no response

I made tcpdump in the first server I got there is hit that told > But in third server which is ( when I made tcpdump there is no hit

I think when I ping form second server (to there is no problem and rech to the first server( tcpdump record that), but there something happend and he can't go from his defult gw (for first server to the third server, and i must put a rule for return

I missed up in route in first server ! can any one help me?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.