Client doesn't reconnect automatically

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
zerot13
OpenVpn Newbie
Posts: 1
Joined: Wed May 18, 2022 6:45 am

Client doesn't reconnect automatically

Post by zerot13 » Wed May 18, 2022 7:01 am

Client doesn't reconnect automatically, only if i restart process on the client side
I'm using both client and server versions of openvpn 2.5.6

Server configuration

mode p2p
local 10.20.20.120
port 1194
proto tcp-server
dev tun11
user nobody
group nogroup

tls-server
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh.pem
cipher AES-128-CBC
auth SHA1

persist-tun
persist-key

keepalive 10 60
ping-timer-rem

status /etc/openvpn/server/status.log
log /var/log/openvpn/P2P_server_openvpn.log
verb 11

ifconfig 10.0.0.65 10.0.0.66
persist-local-ip

passtos



client configuration

client
remote "server ip address and port"
proto tcp
dev tun1
user nobody
group nogroup
resolv-retry infinite

tls-client
askpass /etc/openvpn/client/pkp.txt
ca /etc/openvpn/client/keys/ca.crt
cert /etc/openvpn/client/keys/mx.crt
key /etc/openvpn/client/keys/mx.key
cipher AES-128-CBC
auth SHA1

persist-tun
persist-key

;float
keepalive 10 60
ping-timer-rem

log /var/log/openvpn/P2P_fooclient_openvpn.log
verb 3

route-nopull
ifconfig 10.0.0.66 10.0.0.65

passtos


After manual restart of openvpn on the client side all working fine until next time

Post Reply