[SOLVED] OpenVPN client does not seem to do anything

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
valvolt
DD-WRT Novice


Joined: 29 Sep 2019
Posts: 7

PostPosted: Sun Sep 29, 2019 12:09    Post subject: [SOLVED] OpenVPN client does not seem to do anything Reply with quote
Hello,

I recently upgraded by linksys e1200v2 router to the latest K3.0 build (40559).

I enabled the openvpn client service (which worked like a charm on the previous firmware) but here nothing seems to happen.

- the Status -> OpenVPN logs are empty (no message telling 'connection successful' nor 'connection failed')
- there is no TUN interface opened on the router
- if I run a ps command on the router I don't see any openvpn job

A reboot did not help. Nor did applying settings again (which was my workaround with the previous build).

How can I debug this? Getting an error message would already be a big step forward. I read the ovpn troubleshooting guide mentioned here https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795 but there is nothing related to not getting any feedback at all...

Thanks in advance for your tips !

Vlt.


Last edited by valvolt on Mon Sep 30, 2019 19:01; edited 1 time in total
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Sun Sep 29, 2019 14:46    Post subject: Reply with quote
Usually if the OVPN does not start there is a serious fault in the setup, usually but not exclusively a certifcate/key.

But It could be that this build is just not working.

You are using a Linux Kernel 3X mega build ?
(I do not think the Linux K2.6 builds have openVPN)

If you are sure the keys/certicates and setup are right, then research the build threads for a build which is reported working

Latest build is 41174: ftp://ftp.dd-wrt.com/betas/2019/

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


Joined: 29 Sep 2019
Posts: 7

PostPosted: Mon Sep 30, 2019 12:58    Post subject: Reply with quote
Thanks !

So...
- Yes I am using the 3X mega build
- I updated to 41174 and the result is exactly the same

- Previously I was using the v24-sp2 Mega (from 03/25/13)

What is strange is that if I telnet to the router and that I run openvpn there, the console says that the connection is successful. So it seems that the problem lies between the UI and the OS command?

Is it be possible to run directly in the console the command executed when I click 'apply settings' in the PPTP.asp page?

I will try in parallel to hard reset and to try with a 2.6 build...

Thanks again

Vlt
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Mon Sep 30, 2019 14:34    Post subject: Reply with quote
valvolt wrote:
Thanks !

So...
- Yes I am using the 3X mega build
- I updated to 41174 and the result is exactly the same

- Previously I was using the v24-sp2 Mega (from 03/25/13)

What is strange is that if I telnet to the router and that I run openvpn there, the console says that the connection is successful. So it seems that the problem lies between the UI and the OS command?

Is it be possible to run directly in the console the command executed when I click 'apply settings' in the PPTP.asp page?

I will try in parallel to hard reset and to try with a 2.6 build...

Thanks again

Vlt


I also have noted some strange behaviou on current builds, you often have to apply twice (and wait between applies) before you can see anything on the Status/OVPN page.
I also noted that although you do not see anything on the Status/OVPN page the client sometimes seems running (telnet into your router and do: ps)

you can run the OVPN client from the console with:
Code:
openvpn --config /tmp/openvpncl/openvpn.conf --route-up /tmp/openvpncl/route-up.sh --route-pre-down /tmp/openvpncl/route-down.sh --daemon


What also works:
stopservice openvpn
startservice openvpn


I have to check further when I have some more time and make a ticket

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


Joined: 29 Sep 2019
Posts: 7

PostPosted: Mon Sep 30, 2019 18:59    Post subject: Reply with quote
Wow, thanks !

Now I could debug properly and, well, it did not work because of me:

I added as extra parameter 'persist-tun' and 'persist-key' , which were necessary in v24, not realizing that this option was already setup by the router in v3X (this seems to be set automatically as I did not find any option to turn it on or off in the UI).

Then, it appears that setting these options twice are enough for openvpn to quit immediately and without showing any error.

Removing these from the 'Additional config' was enough to get the tunnel work properly.

So the build works perfectly. Yet, knowing about the /tmp/openvpncl/openvpn.conf file was a tremendous help !

So thanks for that, hoping that this post may help other people having the same issue.

Vlt
Mddert
DD-WRT Novice


Joined: 14 May 2023
Posts: 1

PostPosted: Thu Jun 08, 2023 16:52    Post subject: OpenVPN issue Reply with quote
Mine doesn't work too

Currently trying an OpenVPN client account on TP-Link AC1900

The VPN itself can be connected succesfully

However, no internet passes through it (all the internet is off by VPN)

I'm not sure if I should change the OpenVPN items or add more settings to the router.

Anyone can help?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Thu Jun 08, 2023 18:36    Post subject: Reply with quote
Current release, Policy-Based Routing.

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2023/06-06-2023-r52894/

Sticky: OpenVPN guides and documentation

Don't know which AC1900 you refer to, not going to guess.

This is my contribution to your hijack. Good luck.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
OBJECTION3R
DD-WRT Novice


Joined: 27 Jun 2023
Posts: 1

PostPosted: Tue Jun 27, 2023 13:27    Post subject: That worked. Reply with quote
It really worked @kernel
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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