This is an old revision of the document!
There are a lot of things you can do with Custom Commands. As you can see, there are quite a few that come pre-installed on a PRO. Think of these as a dashboard for accessing shortcuts to perform tasks and control features. This Wiki page will walk you through building custom commands for quickly turning on/off your manually configured VPN service. The same principles would apply however for any other custom commands you wanted to build.
For more info on setting up a third party VPN go here:
Log into the admin panel (UI), click the System dropdown Select 'Custom Commands'
On the resulting page select the 'Configure' tab
Scroll down and click the 'Add' button. (1) It will populate a blank command field. Begin by putting in a description in the first box (this can be anything you want, its just a way for you to reference it) (2) Then in the field for command, put in (3): openvpn /etc/openvpn/nameofyourconfigfile.ovpn Scroll down and click 'Save and Apply' (4)
After the refresh click the 'Dashboard' tab, and under your new custom command click the button that says 'run'.
It will say 'Collecting Data' and you will see the spinning wheel for a minute and 'waiting for the command to complete'
The spinning wheel will probably stay spinning as long as the vpn is connected.
In order to shut off your VPN, you can add another custom command by following the same steps. To turn it off however, use the command: “killall openvpn” FYI, you can also do this through the command line
You can check on the command line to see if its running with a “ps | grep openvpn” which will give you an output like this:
ps | grep openvpn 4165 root 1184 S sh -c openvpn “/etc/openvpn/my_expressvpn_argentina_udp.ovpn” >/tmp/lua_HMagfe 2>/tmp/l 4166 root 3656 S openvpn /etc/openvpn/my_expressvpn_argentina_udp.ovpn 4264 root 1184 S grep openvpn
and looking at the output from that you can view the logfiles by doing a “tail -f /tmp/nameofourputfile* ”