Posted: Sun Sep 29, 2019 12:09 Post subject: [SOLVED] OpenVPN client does not seem to do anything
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
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...
Joined: 18 Mar 2014 Posts: 12837 Location: Netherlands
Posted: Mon Sep 30, 2019 14:34 Post subject:
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:
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.