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

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

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: 147
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-r31870M kongac (04/16/17)
Netgear R9000 - Stock for the moment

Useful links:

Kong's Builds:
http://www.desipro.de/ddwrt/

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

dd-wrt supported devices:
http://www.dd-wrt.com/wiki/index.php/Supported_Devices
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1007
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 - Wired GigaBit Backbone
| SSH | DDNS | DNSSEC | DNSCrypt-Proxy | DHCP/Static IPs |
| USB Storage | VLANs/BRs | WiFi | OpenVPN | YAMon3 |
2x R7000 KONGAC 31870M (k4.4.61#300SMP)

______________________
Travel Router

Wireless Client & AP | OpenVPN
Linksys E3000 Shibby v1.28-124

______________________
DDWRT 60-day Timeline/changelogs
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 648
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?

_________________
Router Netgear R6400, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide see Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
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: 2824

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: 147
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-r31870M kongac (04/16/17)
Netgear R9000 - Stock for the moment

Useful links:

Kong's Builds:
http://www.desipro.de/ddwrt/

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

dd-wrt supported devices:
http://www.dd-wrt.com/wiki/index.php/Supported_Devices
justlookin
DD-WRT Novice


Joined: 21 Dec 2015
Posts: 18

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