GL-MT300N-V2 Connect and disconnect OpenVPN client at commandline

Hello everybody,

I would like to know how to connect and disconnect the VPN client (like in the web interface).

I have tried the following commands with no luck:

/etc/init.d/startvpn start
/etc/init.d/startvpn restart
/etc/init.d/openvpn start
/etc/init.d/openvpn restart

Any suggestion ?

/etc/init.d/startvpn start

/etc/init.d/startvpn stop

Hello,

This answer isn’t complete!
A few days ago, I have gotten the complete answer for this question:

uci set glconfig.openvpn.enable=β€˜1’
uci commit glconfig
/etc/init.d/startvpn restart

and

uci set glconfig.openvpn.enable=β€˜0’
uci commit glconfig
/etc/init.d/startvpn stop

The command are all in the script /usr/bin/switchaction

1 Like