Because you've edited the syslog, it's hard for me to be sure exactly what's happening. For example, I can't tell if the public IP to which you are connecting is the same or different each time the client attempts a connection. I understand the necessity if this is your own OpenVPN server, but not for a public one (ExpressVPN, PIA, etc.). The reason I care is because I'm trying to determine *why* it keeps trying to reconnect, then suddenly gets connected (makes sense if the client is trying different public IPs, but not if they are the same), but ultimately fails due to the route-down script failing.
At the following point in the syslog, it *finally* appears to be connecting after many failed attempts.
Code:
Sat Feb 20 13:17:51 2021 us=388418 [XXXXXX] Peer Connection Initiated with [AF_INET]141.XXX.YYY.ZZZ:443
rSat Feb 20 13:17:52 2021 us=929800 SENT CONTROL [XXXXX]: 'PUSH_REQUEST' (status=1)
WRRSat Feb 20 13:17:52 2021 us=964542 PUSH: Received control message: 'PUSH_REPLY,comp-lzo no,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.X.Y.Z.,route-gateway 10.X.Y.Z,topology subnet,ping 10,ping-restart 60,ifconfig 10.X.Y.Z 255.25
.255.0,peer-id 3,cipher AES-256-GCM'
…
I can assure you that the public ip is identical every time it connects, it's AirVPN server.
Now upgraded to last build available (r45820), I will check...
But, it seems a strange question, can you explain me why if I restart the DSL connection of my will, the openvpn client then restarts automatically, while if there are disconnections due to the ISP provider openvpn remains off?
egc wrote:
If the OpenVPN does not restart with the script then reboot the router, in this line of the script:
Code:
#REBOOT=
remove the # so that it will read:
Code:
REBOOT=
Posted: Mon Jul 05, 2021 22:27 Post subject: Gateway VPN
I resume this discussion, I have several devices connected that have as a gateway the router with openvpn. If the isp connection goes ko as already said, now it reconnects automatically, unfortunately, however, the hosts do not do the same thing, i.e. I need a restart of the openvpn service.
[EDIT] it looks that you do not need to restart the openvpn client, but just give an "apply changes" even if no changes have been made anywhere, and client below the router reconnects to Internet
Posted: Sat Jan 15, 2022 1:47 Post subject: Re: Gateway VPN
andrea_m83 wrote:
I resume this discussion, I have several devices connected that have as a gateway the router with openvpn. If the isp connection goes ko as already said, now it reconnects automatically, unfortunately, however, the hosts do not do the same thing, i.e. I need a restart of the openvpn service.
[EDIT] it looks that you do not need to restart the openvpn client, but just give an "apply changes" even if no changes have been made anywhere, and client below the router reconnects to Internet
Does anyone have any idea how to solve the problem? ... in the morning when I wake up I find the server unreachable due to the numerous faults of the ISP provider.
The DD-WRT v3.0-r47942 std is my last version changed.
Posted: Sat Jan 15, 2022 2:12 Post subject: Re: Gateway VPN
andrea_m83 wrote:
andrea_m83 wrote:
I resume this discussion, I have several devices connected that have as a gateway the router with openvpn. If the isp connection goes ko as already said, now it reconnects automatically, unfortunately, however, the hosts do not do the same thing, i.e. I need a restart of the openvpn service.
[EDIT] it looks that you do not need to restart the openvpn client, but just give an "apply changes" even if no changes have been made anywhere, and client below the router reconnects to Internet
Does anyone have any idea how to solve the problem? ... in the morning when I wake up I find the server unreachable due to the numerous faults of the ISP provider.
The DD-WRT v3.0-r47942 std is my last version changed.
Posted: Wed Jan 19, 2022 8:27 Post subject: Same issues
Hi guys, same result ... the client restarts it would seem, because from Administration/Openvpn it is "Connected Success", however the hosts, all connected behind the dd-wrt router in vpn, lose the connection. But just press a random "Apply Settings" somewhere in the GUI that fixes everything ... Very strange... If the same hosts are connected to another device with the openvpn client on board (for example a Raspberry) this it doesn't happen.
I created and posted an elaborate VPN and Internet reachability script. It should solve most of what is going on here I think.
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1256142#1256142 _________________ --------------------------------------------------
VLANs, port trunking, virtual SSID (Guest)
DNSmasq, NTP, syslog, nflow
Hub and spoke, multi-site, routed VPN (OpenVPN client), split tunnel
1 DNS zone per site, forward, reverse look-up across all sites
Asus RT-AC68U rev A2 DD-WRT v3.0-r48138 std (01/17/22)
Asus RT-AC68U rev C1 DD-WRT v3.0-r48138 std (01/17/22)
Asus RT-AC1900P DD-WRT v3.0-r48138 std (01/17/22)
Asus RT-AC1900P DD-WRT v3.0-r48138 std (01/17/22)
Netgear R7000 DD-WRT v3.0-r48138 std (01/17/22)
Linksys E2000 DD-WRT v3.0-r33492 mega (10/10/17)
Posted: Mon Jan 24, 2022 23:46 Post subject: Final act!
I don't want to be too hasty, but it looks like we finally fixed it! I installed ddwrt-ovpn-watchdog.sh as recommended by eibgrad and updated the firmware to r48138 thanks to egc.
this morning new wan disconnection, but the clients reconnected to the internet behind openvpn automatically.