Hi,
I've configured my OpenVPN server and I'm connecting to it with the following config:
dev tun
persist-tun
persist-key
cipher AES-256-CBC
tls-client
client
resolv-retry infinite
remote <IP>1194 udp
ns-cert-type server
auth-retry interact
pkcs12 user.p12
tls-auth user-tls.key 1
comp-lzo
script-security 2
up /etc/openvpn/up.sh
down /etc/openvpn/down.sh
Where the <IP> has to be replaced with an actual WAN IP. Everything works ok, but sometimes the connected VPN client justs starts to produce these warning messages:
Authenticate/Decrypt packet error: bad packet ID (may be a replay): [ #2 / time = (1386173047) -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
TLS Error: incoming packet authentication failed from [AF_INET]<IP>:1194
I cannot reach the services over the VPN tunnel, because obviously the VPN client cannot reconnect for whatever reason.
Can somebody tell me what happens? I have normal internet connection, but VPN just wouldn't work and the error messages above are reprinted until I manually disconnect and reconnect the VPN tunnel? But this is annoying to do every couple of hours, so I would like a solution where it can reconnect without problems and errors.
Any thoughts?