OpenVPN 客户端几分钟后停止工作

OpenVPN 客户端几分钟后停止工作

我正在使用 OpenVPN 客户端,它运行良好,但几分钟后 VPN 就停止工作。

我在日志中收到这些错误:

Sun May 10 20:55:28 2015 [nrt-c01.ipvanish.com] Inactivity timeout (--ping-restart), restarting
Sun May 10 20:55:28 2015 SIGUSR1[soft,ping-restart] received, process restarting
Sun May 10 20:55:28 2015 Restart pause, 2 second(s)
Sun May 10 20:55:30 2015 Socket Buffers: R=[163840->327680] S=[163840->131072]
Sun May 10 20:55:30 2015 TCP/UDP: Preserving recently used remote address: [AF_INET]110.50.241.72:443
Sun May 10 20:55:30 2015 UDPv4 link local: [undef]
Sun May 10 20:55:30 2015 UDPv4 link remote: [AF_INET]110.50.241.72:443
Sun May 10 20:56:10 2015 [UNDEF] Inactivity timeout (--ping-restart), restarting
Sun May 10 20:56:10 2015 SIGUSR1[soft,ping-restart] received, process restarting
Sun May 10 20:56:10 2015 Restart pause, 2 second(s)
Sun May 10 20:56:12 2015 Socket Buffers: R=[163840->327680] S=[163840->131072]
Sun May 10 20:56:12 2015 TCP/UDP: Preserving recently used remote address: [AF_INET]110.50.241.72:443
Sun May 10 20:56:12 2015 UDPv4 link local: [undef]
Sun May 10 20:56:12 2015 UDPv4 link remote: [AF_INET]110.50.241.72:443
Sun May 10 20:56:52 2015 [UNDEF] Inactivity timeout (--ping-restart), restarting
Sun May 10 20:56:52 2015 SIGUSR1[soft,ping-restart] received, process restarting
Sun May 10 20:56:52 2015 Restart pause, 2 second(s)
Sun May 10 20:56:54 2015 Socket Buffers: R=[163840->327680] S=[163840->131072]
Sun May 10 20:56:54 2015 TCP/UDP: Preserving recently used remote address: [AF_INET]110.50.241.72:443
Sun May 10 20:56:54 2015 UDPv4 link local: [undef]
Sun May 10 20:56:54 2015 UDPv4 link remote: [AF_INET]110.50.241.72:443

我的配置如下,直接来自 VPN 提供商:

client
dev tun
proto udp
remote nrt-c01.ipvanish.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
persist-remote-ip
ca ca.ipvanish.com.crt
tls-remote nrt-c01.ipvanish.com
auth-user-pass /etc/openvpn/ipvanish.user
comp-lzo
verb 3
auth SHA256
cipher AES-256-CBC
keysize 256
tls-cipher DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA

是什么原因造成的?我在 Raspberry Pi 上使用 Arch Linux。

答案1

你需要活着已启用。请您的 VPN 提供商添加:

保持活动 10 900

到服务器配置文件。

相关内容