on my router (19.07.7) I have an openvpn client installed and I can configure, start and stop it via the web-interface.
But I cannot figure out how to start it from the command line.
I would have expected something like "sudo /etc/init.d/openvpn start" (yes - I treat my router a bit like a linux-system and log in via a non-root user and have sudo installed) but that does not seem to do anything (it does not throw any error either).
So with everything in place, openvpn installed and working via lucy with a valid opvn-file in /etc/openvpn/ovpn1: How do I start the client from the command line?
At least on the official OpenWrt builds, the LuCI OpenVPN app triggers /etc/init.d/openvpn start -- and when it does this, it will look for the OpenVPN configuration that is enabled in /etc/config/openvpn -- it's as simple as that.
As I mentioned in my previous post, you may be running a GL-inet version of OpenWrt which may operate differently. Please confirm the version you are running.
ok... good. So that looks like it is probably the official OpenWrt build. I would recommend upgrading to 19.07.10 (which is the latest, but the 19.07 series is now officially EOL), or better yet 21.02.3.
Let's take a look at your config files (as mentioned below -- please redact any sensitive info:
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Then, try to start the VPN by issuing: /etc/init.d/openvpn start
and provide the log that results from that (again, redact any private details)
Hello! Have you found a solution? Because I've a TRENDnet router (TWG-431BR) which have a subset of openwrt installed with openvpn. And as you said when I connect from the cli I loose the internet connection. In the trendnet webapp I can only create a openvpn server.