Jump to content
Not connected, Your IP: 3.14.249.191
TheOneAndOnlyChosenOne

OpenVPN loses connection after some time

Recommended Posts

I'm running openvpn through this command:

sudo openvpn --config vpn.ovpn


which works. I can ping several websites.

After a while, I cannot ping anything anymore, including ip addresses. I can still ping an internal ip.
The openvpn command is still running.

After the Initialization Sequence Completed:

Quote

Sun May 12 15:58:59 2019 [XXX] Inactivity timeout (--ping-restart), restarting

Sun May 12 15:58:59 2019 SIGUSR1[soft,ping-restart] received, process restarting
Sun May 12 15:58:59 2019 Restart pause, 5 second(s)
Sun May 12 15:59:04 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun May 12 15:59:04 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]XXX.XXX.XXX.XXX:443
Sun May 12 15:59:04 2019 Socket Buffers: R=[163840->163840] S=[163840->163840]
Sun May 12 15:59:04 2019 UDP link local: (not bound)
Sun May 12 15:59:04 2019 UDP link remote: [AF_INET]XXX.XXX.XXX.XXX:XXX


'Restart pause' happens at increasing intervals.

According to the man page:
Quote
OpenVPN to exit after n seconds of inactivity on the TUN/TAP device. The time length of inactivity is measured since the last incoming or outgoing tunnel packet.  The default value  is  0 seconds, which disables this feature.
So now I'm confused.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...