ping-restart fails to reconnect upon ssid change

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
wuzamarine
OpenVpn Newbie
Posts: 2
Joined: Sat Jul 13, 2019 11:38 pm

ping-restart fails to reconnect upon ssid change

Post by wuzamarine » Sun Jul 14, 2019 2:36 am

I have trying to 'high availability' my wireless connection and have 2 ssids configure in wpa_supplicant.

I have ping-restart set at the client and keepalive configure on the server but, when my ssid fails over, the timeout process will begin and I see ping-restart performing a soft restart, but connectivity still fails.

I can perform a hard restart at the cli (systemd) and services/connectivity to my OpenVPN LAN comes live. I would just like it to happen automagically via openvpn.

Server
:

Code: Select all

mode server
tls-server
port 1194
proto udp
dev tun

ca      /usr/share/easy-rsa/keys/ca.crt    # generated keys
cert    /usr/share/easy-rsa/keys/server.crt
key     /usr/share/easy-rsa/keys/server.key  # keep secret
dh      /usr/share/easy-rsa/keys/dh2048.pem

server 10.9.8.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo         # Compression - must be turned on at both end
persist-key
persist-tun
status /var/log/openvpn-status.log
verb 3  # verbose mode
user nobody
group nogroup
client-config-dir /etc/openvpn/ccd
client-to-client
#push "redirect-gateway def1"
push "redirect-gateway bypass-dhcp"
push "route 192.168.0.0 255.255.255.0"
push "dhcp-option DNS 188.120.247.2"


Client
:

Code: Select all

client
remote hidden
dev tun
#ifconfig 10.9.8.2 10.9.8.1
nobind
persist-key
persist-tun
tls-client
ca /etc/openvpn/ca.crt
cert /etc/openvpn/dell.com.crt
key /etc/openvpn/dell.com.key
comp-lzo
verb 5
syslog /var/log/openvpn-syslog.log
status /var/log/openvpn-status.log
ping-restart 10
[\oconf]


Logs:

Code: Select all

 http://dpaste.com/1TX5WB4 

Server connection logs:

http://dpaste.com/1DSWWMA
Last edited by wuzamarine on Sun Jul 14, 2019 12:02 pm, edited 2 times in total.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5790
Joined: Fri Jun 03, 2016 1:17 pm

Re: ping-restart fails to reconnect upon ssid change

Post by TinCanTech » Sun Jul 14, 2019 11:53 am

Try removing persist-* from your client config.
Last edited by TinCanTech on Sun Jul 14, 2019 3:45 pm, edited 1 time in total.

wuzamarine
OpenVpn Newbie
Posts: 2
Joined: Sat Jul 13, 2019 11:38 pm

Re: ping-restart fails to reconnect upon ssid change

Post by wuzamarine » Sun Jul 14, 2019 12:06 pm

Thank you!

Worked like a charm the very first try.

Post Reply