Hi.
I’ve been trying for a week to solve frequent reconnect problem.
Read stackoverflow, google it. And no solution for now.
I have Windows 7 SP1 PC and Debian server.
I install openvpn on debian server with this instruction
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-debian-9
I install OpenVpn (OpenVPN GUI 11.13.0.0) on win 7.
All is ok, but i have very frequent inactive restart. Connect established and after 30sec to 2 minutes it restart...
Here is Server config.
port ...
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
duplicate-cn
max-clients 5
keepalive 10 60
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
mssfix 1200
tun-mtu 1200
status openvpn-status.log
log /var/log/openvpn.log
verb 5
Here is client config
client
dev tun
proto udp
remote ... ...
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
compress lzo
verb 5
auth-nocache
mssfix 1200
tun-mtu 1200
keepalive 10 60
<ca>
...
</ca>
<cert>
...
</cert>
<key>
...
</key>
Here is server logs:
https://pastebin.com/90fQTPd8
Here is client logs:
https://pastebin.com/8y6pCxpF