Joseph
January 29, 2019, 10:52am
1
Hi,
I have import the client.ovpn file, and work perfectly will I activate the connection by clicking the connect button.
But I wonder how I can start and stop the connection from command line, I tried to run the full command that is shown in “ps” command it does not work.
Anybody knows the trick?
alzhao
January 29, 2019, 2:36pm
2
it is simple
openvpn /etc/openvpn/xxxxxx.ovpn
This starts the vpn but not necessary fix firewall rules. You still need to change firewall in order to route correctly.
I did notice using
/etc/init.d/startvpn restart
doesnt work anymore – seems to get hung up
alzhao
January 29, 2019, 4:54pm
4
It should work. Did you modify your ovpn manually? there should be a line
daemon
Found the bug in startvpn. Does not like spaces in the ovpn file names. Added a fix to the tracker:
alzhao
January 31, 2019, 2:07am
6
I think this should be fixed already. Maybe you are using an old version?
Pls specify your model and version.
alzhao
January 31, 2019, 2:13am
8
Got it. Thanks. We will check.
This should be fixed already.