Following happens:
No WiFi (Android)
Start laptop
OpenVPN autostarts using systemd
Enable WiFi hotspot
Connection gets established
Everything is fine, showtime
Disable WiFi hotspot
Client log says:
Recursive routing detected, drop tun packet to [AF_INET]SE.RV.ER.IP
Of course server log says :
...........Inactivity timeout (--ping-restart), restarting
.........SIGUSR1[soft,ping-restart] received, client-instance restarting
Client doesn`t reconnect after enabling WiFi hotspot and writes
Recursive routing detected, drop tun packet to [AF_INET]SE.RV.ER.IP
continuously.
Server pushes (ccd):
PUSH: Received control message: 'PUSH_REPLY,sndbuf 524288,rcvbuf 524288,route-gateway 192.168.168.1,topology subnet,
ping 15,
ping-restart 90,
route 0.0.0.0 0.0.0.0,route 192.168.51.0 255.255.255.0,route 192.168.25.0 255.255.255.0,route 192.168.2.0 255.255.255.0,route 192.168.178.0 255.255.255.0,dhcp-option DNS 192.168.168.1,dhcp-option NTP 192.168.168.1,redirect-gateway def1,ifconfig 192.168.168.2 255.255.255.0'
Client config:
setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
down-pre
remote 1
remote 2
remote 3
remote 4
remote-random
resolv-retry 5
explicit-exit-notify 2
client
nobind
proto udp
dev tun
float
fast-io
comp-lzo
persist-tun
persist-key
I did not yet try --allow-recursive-routing.
W(C)ould the detection of recursive routing prevent restarting...?
Thanks.
Sidenote:
systemd starts the client with --nobind and --supress-timestamps
I like to control that myself.....so i removed it.