openvpn stops working a short period after connecting

14,314

Solution 1

The problem was on router, after reconfigure router, the vpn start to work again.

Solution 2

Oh number one cause of this in our company is the same OpenVPN key being used simultaneously in two different places. The same IP gets allocated by the server to both clients, causing a dropout after a minute or two.

Solution 3

That smells like a client-side routing problem. Take a look at the routing table immediately after the OpenVPN tunnel establishes (while it's working), and then again after it stops working, and look for any differences. I've had a problem where a DHCP client was wiping out (overriding) routes from OpenVPN, which would make the connection to the OpenVPN server unavailable.

Solution 4

Can you post the openvpn config files? If so, be sure to conceal any private information like IP addresses or domain names.

Solution 5

See if you can ping the gateway host on its internal ip address. Also run a traceroute and see where those packets are going.

Share:
14,314

Related videos on Youtube

Sebastiaan M
Author by

Sebastiaan M

Updated on September 17, 2022

Comments

  • Sebastiaan M
    Sebastiaan M over 1 year

    I manage simple workgroup at work that uses openvpn gui for connecting to remote computers.

    Accidently I discovered a very strange bug -- the openvpn connection works initially, and pings work, but after 30 seconds, pings and any other access stop working, without any discernable reason.

    Openvpn client shows as still connected (no new logs, the icon is green), the openvpn server shows that the connection is still established (but cant ping the client either), windows logs doesn't show any clue. And from home i still connect through the VPN without problem.

    I need clue for where to look on, any other logs or tests?

    Edit:

    womble suggested to check route table, simple script shows that there is no change in route table :(, thank you anyway womble.

  • Sebastiaan M
    Sebastiaan M about 15 years
    thankyou. i am checked the route table table by script. my script doesn't show any changes after connection. and doesn't show any changes after that connection fail
  • gregmac
    gregmac almost 15 years
    what was the fix?
  • Sebastiaan M
    Sebastiaan M over 14 years
    @gregmac reconfiguring the router.
  • Alfabravo
    Alfabravo about 13 years
    Would be nice to know what was reconfigured. Not helpful!