meuh4
August 14, 2024, 9:52am
1
Hello,
I’m looking to turn off the Active/inactive button of an OpenVPN connection using SSH.
Actually, I can turn off/on the service using /etc/init.d/openvpn stop/start, it works, but the button doesn’t move.
Do you have an idea if it’s possible ?
Thanks
It’s because the command you are using is for the service itself, not for the ‘enable’ option of the openvpn instance.
You can either edit the config file in /etc/config/openvpn or use some uci commands to set the ‘enable’ value of the openvpn instance you are having.
Editing the config file
vi /etc/config/openvpn
Press “i” ofcourse.
Set the value of ‘enable’ option by 0 on the openvpn instance that you want to disable.
Save by pressing Esc, then type wq
.
Uci command - just execute these one in order
uci set openvpn.nameofvpninstance.enable='0'
uci commit openvpn
reload_config
Caner
Closed
August 19, 2024, 1:41pm
4
This topic was automatically closed 2 minutes after the last reply. New replies are no longer allowed.