OpenVPN Will Not Start on R7000 Reboot

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


Joined: 24 Mar 2015
Posts: 21

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: 31

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: 174
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 R7000 - DD-WRT v3.0-r31780M kongac (03/26/17)
Netgear R8000 - DD-WRT v3.0-r30880 std (11/14/16)
Netgear R9000 - DD-WRT v3.0-R38159 std (01/02/19)


Useful links:

BrainSlayer Builds:
ftp://ftp.dd-wrt.com/betas/2019/

CloneVince keeps an unofficial repository:
http://ddwrt-kong.clonevince.fr/

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: 1478
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 PureFibre - 10GbE Copper Backbone
3x R7800 - Gateway WiFi 6xWireGuard - DDWRT r42803 Std
WHR-HP-G54 - Internal Routing - DDWRT r35531 std-special
2x E3000 - Gateway Wired IPTV - DDWRT r35531 Mega
E3000 - TRAVEL Wireless Client WireGuard(30Mbit/s) - DDWRT r42803 Mega

Off Site 1

R7000 - Gateway, WiFi & OpenVPN - KONGAC 39855M
WRT610Nv1 - Client Bridge - DDWRT r33679 Mega K2.4

Off Site 2

R7000 - Gateway & WiFi - KONGAC 39855M
E2000 - Wired PVR Blocker - DDWRT r35531


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


Joined: 18 Mar 2014
Posts: 5175
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 R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
OpenVPN Policy Based Routing guide: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN Server Setup:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Wireguard Setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1183135
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: 5445
Location: Akershus, 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: 174
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 R7000 - DD-WRT v3.0-r31780M kongac (03/26/17)
Netgear R8000 - DD-WRT v3.0-r30880 std (11/14/16)
Netgear R9000 - DD-WRT v3.0-R38159 std (01/02/19)


Useful links:

BrainSlayer Builds:
ftp://ftp.dd-wrt.com/betas/2019/

CloneVince keeps an unofficial repository:
http://ddwrt-kong.clonevince.fr/

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: 28

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 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