VPN disconnecting issue

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
alexsmith2709
DD-WRT Novice


Joined: 25 Nov 2011
Posts: 8

PostPosted: Mon May 15, 2023 11:51    Post subject: VPN disconnecting issue Reply with quote
Hi,
I am having issues with my VPN disconnecting randomly. Sometimes it stays connected for weeks, other times only a few days. The status page will usually say the state is "Client: AUTH". Applying settings again on the OpenVPN page fixes the issue.

I have a WRT1900ACS V2 and is currently on build 51440.

I currently use Mullvad as my VPN, but had this same issue on another VPN provider. I have set it up according to their instructions. I also have multiple servers setup, so if one was temporarily unavailable it should connect to another.
I have had this issue across multiple builds and i have been using DD-WRT for a couple of years, if a newer build has fixed this issue i'll update.

I wrote a cron script to try and solve the issue, but that doesnt seem to work. I used
Code:
*/15 * * * * ping -I tun1 -c 1 8.8.8.8 &> /dev/null && : || (stopservice openvpn && sleep 5 && startservice openvpn)
I found this somewhere, possibly on this forum.
My VPN is running on tun1, i have checked this.

Because i dont always realise immediately that the VPN has gone down (I have it route based just for my NAS) i dont get to see anything useful in the logs, unless there is somewhere else i can look.

Thanks

I apologise if this is a VPN issue, but as its been happening over multiple providers i assumed not.
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Mon May 15, 2023 15:40    Post subject: Reply with quote
https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2023/05-15-2023-r52569/linksys-wrt1900acsv2/
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Tue May 16, 2023 1:20    Post subject: Reply with quote
See Model No. bottom of router upper-right corner only this is the only accurate way to identify model and version.
After upgrading from r51440 to r52569 verify success in the webUI upper-right hand corner see the build number.
Also during upgrade ignore that drop-down option so do not reset because you want to do that only after success.

From here go to factory defaults tab, or nvram erase && reboot, then go about manually reconfiguring your router.
Disconnections fixed, also cleanup of antenna chains so be sure wireless advanced settings chains show 1+2+3+4.
OpenVPN guides and documentation by egc
alexsmith2709
DD-WRT Novice


Joined: 25 Nov 2011
Posts: 8

PostPosted: Tue May 16, 2023 17:53    Post subject: Reply with quote
Thanks. I have updated and reset and reconfigured so we'll see how it goes
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12834
Location: Netherlands

PostPosted: Sun May 21, 2023 6:29    Post subject: Reply with quote
That happens, a provider is doing maintenance, a server is too busy and you are kicked off, you have a network glitch etc.
OpenVPN by nature does not do a good job to recover (WireGuard does a bit better), that is why the OpenVPN GUI has a watchdog setting to restart the OpenVPN client (or the router if you want to).

If the watchdog is enabled and the connection is not working for more than x seconds, the watchdog will kick in.

All explained in the manual: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327398

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum