Posted: Sun Sep 12, 2021 10:57 Post subject: Clean Disconnect and Reconnect OpenVPN Service + DNS Questio
Hello,
i had frequently issues with my openvpn connection as i get in the log soft-auth-errors, rebooting the device 20 times, sometimes fixed the issue, and i got a vpn connection established sometimes not. Even sometimes pressing Apply Settings again, worked, sometimes not. I was wondering if the VPN Connection is not clean disconnected, and i could use additional command to safe disconnect / reconnect the connection. I was wondering if i should add under Administration - Commands - Startup / Shutdown the following:
My Provider has a Public DNS Server, and the others are Not Public.
The Public DNS Server is used to establish the VPN Connection, if the Connection is Up and running just the Private DNS Servers are used, as they are closer anyhow to my Location.
I was wondering if i could add a command or something to my VPN Config, that the Public DNS Server is used till the Connection is UP and running, and afterwards just the Private DNS Servers are used?
Actually i use the following additional settings for my OpenVPN Connection:
Joined: 18 Mar 2014 Posts: 12839 Location: Netherlands
Posted: Sun Sep 12, 2021 11:34 Post subject:
We can provide better assistance if you follow the forum guidelines link in my signature at the bottom of this post.
What router and what build?
To which VPN provider?
Except for the keepalive settings you should not need anything in additional Config.
Openvpn documentation see also my signature.
There you can also find a script to restart the connection aka a watchdog script.
Depending on build used the router starts with your regular DNS and then automatically use the pushed DNS server of the provider, assuming you use DNS in strict order.
thanks for your reply. I use Linksys WRT3200ACM Router.
I had a long time no issue with Build r46716 and updated yet to r47282.
Provider is I V P N
I red already the Openvpn documentation.
But was wondering what could be adapted, what is the best solution, as it seems the sessions build up on the VPN Servers, and when the limit is reached the servers answer with a soft-auth-error.