OpenVPN Will Not Start on R7000 Reboot

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
dahosepipe
DD-WRT Novice


Joined: 24 Mar 2015
Posts: 33

PostPosted: Mon Apr 03, 2017 5:25    Post subject: OpenVPN Will Not Start on R7000 Reboot Reply with quote
I just upgraded from BS 30796 to 31791. With 30796 and previous OpenVPN always started automatically on power cycle or reboot.

Now with 31791, OpenVPN doesn't ever appear in the process list after boot. I've had to add this to my startup commands list as a workaround:

Code:
sleep 60
killall openvpn
openvpn --config /tmp/openvpncl/openvpn.conf --up /tmp/openvpncl/route-up.sh --down /tmp/openvpncl/route-down.sh --daemon


Is this a bug? Or is there a new setting with OpenVPN 2.4 that needs to be setup?

Thanks
Sponsor
jaskerx
DD-WRT Novice


Joined: 24 Aug 2016
Posts: 32

PostPosted: Mon Apr 03, 2017 12:37    Post subject: Reply with quote
It's a bug I suffer this as well.
tmo1138
DD-WRT User


Joined: 24 Mar 2015
Posts: 175
Location: Tacoma, Wa

PostPosted: Mon Apr 03, 2017 15:26    Post subject: Re: OpenVPN Will Not Start on R7000 Reboot Reply with quote
dahosepipe wrote:
I just upgraded from BS 30796 to 31791. With 30796 and previous OpenVPN always started automatically on power cycle or reboot.

Now with 31791, OpenVPN doesn't ever appear in the process list after boot. I've had to add this to my startup commands list as a workaround:

Code:
sleep 60
killall openvpn
openvpn --config /tmp/openvpncl/openvpn.conf --up /tmp/openvpncl/route-up.sh --down /tmp/openvpncl/route-down.sh --daemon


Is this a bug? Or is there a new setting with OpenVPN 2.4 that needs to be setup?

Thanks


Haven't tried yet - have you looked into filing a bug over on Trac?

http://svn.dd-wrt.com/

This might be common to both Kong and BS builds.

_________________
Routers:
Netgear R8000 - DD-WRT v3.0-r43420 std (06/15/20)
Netgear R9000 - DD-WRT v3.0-r43420 std (06/15/20)


Useful links:

Builds:
ftp://ftp.dd-wrt.com/betas/2020/


dd-wrt supported devices:
http://www.dd-wrt.com/wiki/index.php/Supported_Devices

So long <kong> and thanks for all the fish!
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1848
Location: Canada

PostPosted: Mon Apr 03, 2017 16:17    Post subject: Reply with quote
If you use the OpenVPN GUI on new or old builds openvpn works fine. When using openvpn scripts with newer builds (=>30949), OpenVPN v2.4.x is used. Some modifications are required when using scripts that worked with OpenVPN v2.3.x, builds (<30949).

Read this thread...

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12889
Location: Netherlands

PostPosted: Mon Apr 03, 2017 16:51    Post subject: Reply with quote
I recently tried open vpn client with build 30880 which was working on my E2000 (I can confirm this was open VPN 2.3). The latest BS build 31791 however did not work, the status page was totally blank, I did not research further but probably openVPN was not started?

At home I use Kong's build 31780 on my R6400 which is working with Open VPN client (version 2.4) Maybe it is BS's builds which only have this problem?

_________________
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
Gama08
DD-WRT Novice


Joined: 03 Apr 2017
Posts: 1

PostPosted: Mon Apr 03, 2017 17:37    Post subject: Re: OpenVPN Will Not Start on R7000 Reboot Reply with quote
dahosepipe wrote:
I just upgraded from BS 30796 to 31791. With 30796 and previous OpenVPN always started automatically on power cycle or reboot.

Now with 31791, OpenVPN doesn't ever appear in the process list after boot. I've had to add this to my startup commands list as a workaround:

Code:
sleep 60
killall openvpn
openvpn --config /tmp/openvpncl/openvpn.conf --up /tmp/openvpncl/route-up.sh [url=http://www.rachat-de-credit-simulation.com/regroupement-de-pret] Regroupement de prêt [/url]--down /tmp/openvpncl/route-down.sh --daemon


Is this a bug? Or is there a new setting with OpenVPN 2.4 that needs to be setup?

Thanks

Thanks for tuto
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Mon Apr 03, 2017 19:59    Post subject: Reply with quote
There are changes in OpenVPN 2.4. Old configuration fies will no longer work. One of the changes is that proto have changed from udp to udp4.
tmo1138
DD-WRT User


Joined: 24 Mar 2015
Posts: 175
Location: Tacoma, Wa

PostPosted: Tue Apr 04, 2017 4:07    Post subject: Reply with quote
mac913 wrote:
If you use the OpenVPN GUI on new or old builds openvpn works fine. When using openvpn scripts with newer builds (=>30949), OpenVPN v2.4.x is used. Some modifications are required when using scripts that worked with OpenVPN v2.3.x, builds (<30949).

Read this thread...


Thanks for that. I used Private Internet Access' steps on their page:

https://www.privateinternetaccess.com/pages/client-support/dd-wrt-openvpn

On that they recommend these in the 'additional settings' section:

Quote:

persist-key
persist-tun
tls-client
remote-cert-tls server


When I removed that I had no problem with OpenVPN support working and coming back up when the router reboots.

_________________
Routers:
Netgear R8000 - DD-WRT v3.0-r43420 std (06/15/20)
Netgear R9000 - DD-WRT v3.0-r43420 std (06/15/20)


Useful links:

Builds:
ftp://ftp.dd-wrt.com/betas/2020/


dd-wrt supported devices:
http://www.dd-wrt.com/wiki/index.php/Supported_Devices

So long <kong> and thanks for all the fish!
justlookin
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 32

PostPosted: Tue Apr 04, 2017 11:51    Post subject: Reply with quote
tmo1138 wrote:
mac913 wrote:
If you use the OpenVPN GUI on new or old builds openvpn works fine. When using openvpn scripts with newer builds (=>30949), OpenVPN v2.4.x is used. Some modifications are required when using scripts that worked with OpenVPN v2.3.x, builds (<30949).

Read this thread...


Thanks for that. I used Private Internet Access' steps on their page:

https://www.privateinternetaccess.com/pages/client-support/dd-wrt-openvpn

On that they recommend these in the 'additional settings' section:

Quote:

persist-key
persist-tun
tls-client
remote-cert-tls server


When I removed that I had no problem with OpenVPN support working and coming back up when the router reboots.


I'm also a PIA user but your suggestion didn't work for me. Trying to re-establish connection to the VPN client after a reboot has been annoying the begeezus out of me!! I did a bit of poking around and I discovered that releasing / renewing DHCP via the GUI at:
Administration > WAN
made things come good.

So, I added the following at the end of the Startup script:
Quote:
sleep 2
stopservice wan
sleep 5
startservice wan

Found the start/stop service commands from here:
http://secure.dd-wrt.com/phpBB2/viewtopic.php?t=37462
Seems to be working for me. I just needed something simple so that if the WAN connection goes off for some reason, a power cycle of the router will make things come good, i.e. a high WAF solution.

Hopefully, the success I'm seeing isn't a flash in the pan.. Laughing
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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 can attach files in this forum
You can download files in this forum