It is possible to create a shortcut for your iPhone to turn on and off the VPN by running scripts over ssh. But is there a way to change the VPN Director Rules file to enable or disable individual rules? I see the config file in /jffs/openvpn/vpndirector_rulelist, but I do not have the coding skills to craft a script to change specific text within a file. And then I am not sure if just updating this file is sufficient, or if something else needs to be done to "activate" the changes.
To be most clear, here is the content of the file on my system. <1> means enabled and <0> means disabled. I would want my script to toggle the <0> and <1> for select entries (CRs inserted by me for illustrative clarity):
<1>Bedroom LG>192.168.1.51>>OVPN1
<0>Apple TV Bedroom>192.168.1.21>>OVPN1
<0>Apple TV TV Room Wireless>192.168.1.25>>OVPN1
<1>Samsung>192.168.1.63>>OVPN1
<1>PG Laptop>192.168.1.106>>OVPN1
<0>Apple TV Living Room>192.168.1.27>>OVPN1
<0>perry ipad>192.168.1.101>>OVPN1
To be most clear, here is the content of the file on my system. <1> means enabled and <0> means disabled. I would want my script to toggle the <0> and <1> for select entries (CRs inserted by me for illustrative clarity):
<1>Bedroom LG>192.168.1.51>>OVPN1
<0>Apple TV Bedroom>192.168.1.21>>OVPN1
<0>Apple TV TV Room Wireless>192.168.1.25>>OVPN1
<1>Samsung>192.168.1.63>>OVPN1
<1>PG Laptop>192.168.1.106>>OVPN1
<0>Apple TV Living Room>192.168.1.27>>OVPN1
<0>perry ipad>192.168.1.101>>OVPN1