admin@RT-AC68U:/tmp/home/root# x
admin@RT-AC68U:/jffs/scripts# ./VPN_Client_Switch.sh ?
(VPN_Client_Switch.sh): 14672 Starting..... [?]
(VPN_Client_Switch.sh): 14672 VPN Client Status:
(VPN_Client_Switch.sh): 14672 *NO VPN Clients connected*
admin@RT-AC68U:/jffs/scripts# ./VPN_Client_Switch.sh
(VPN_Client_Switch.sh): 14710 Starting..... []
(VPN_Client_Switch.sh): 14710 Flushing VPN Client 1 route 113.29.228.130 (NewYork)
(VPN_Client_Switch.sh): 14710 Waiting for VPN Client 1 (NewYork) to connect.....
(VPN_Client_Switch.sh): 14710 VPN Client 1 (NewYork) connect'd in 20 secs
(VPN_Client_Switch.sh): 14710 Complete.
admin@RT-AC68U:/jffs/scripts# ip route show table NewYork
10.8.0.0/24 dev tun21 scope link
default via 10.200.5.12 dev tun11
admin@RT-AC68U:/jffs/scripts# ./VPN_Client_Switch.sh 2 on
(VPN_Client_Switch.sh): 15185 Starting..... [2 on]
(VPN_Client_Switch.sh): 15185 Starting VPN Client 2
(VPN_Client_Switch.sh): 15185 Flushing VPN Client 2 route 192.157.56.146 (HongKong)
(VPN_Client_Switch.sh): 15185 Waiting for VPN Client 2 (HongKong) to connect.....
(VPN_Client_Switch.sh): 15185 VPN Client 2 (HongKong) connect'd in 9 secs
(VPN_Client_Switch.sh): 15185 Complete.
admin@RT-AC68U:/jffs/scripts# ./VPN_Client_Switch.sh ?
(VPN_Client_Switch.sh): 15587 Starting..... [?]
(VPN_Client_Switch.sh): 15587 VPN Client Status:
(VPN_Client_Switch.sh): 15587 Client 2 connected (HongKong)
(VPN_Client_Switch.sh): 15587 Client 1 connected (NewYork)
admin@RT-AC68U:/jffs/scripts# ./VPN_Client_Switch.sh 2 off
(VPN_Client_Switch.sh): 15634 Starting..... [2 off]
(VPN_Client_Switch.sh): 15634 Stopping VPN Client 2
(VPN_Client_Switch.sh): 15634 Blocking WAN for VPN Client 2 to 192.157.56.146
(vpnrouting.sh): 15690 Patched by John9527/Martineau /usr/sbin/vpnrouting.sh wan_block tun12
openvpn-routing: WAN access blocked for all VPN Client 2 (HongKong) devices/subnets.
(VPN_Client_Switch.sh): 15634 Waiting for VPN Client 2 (HongKong) to disconnect.....
(VPN_Client_Switch.sh): 15634 VPN Client 2 (HongKong) disconnect'd in 2 secs
(VPN_Client_Switch.sh): 15634 ....and VPN Client 'off' requested.
(VPN_Client_Switch.sh): 15634 Complete.
admin@RT-AC68U:/jffs/scripts# ip route show table HongKong
prohibit default
admin@RT-AC68U:/jffs/scripts# ip rule
0: from all lookup local
1101: from 172.0.0.1 lookup NewYork
1102: from 168.0.0.1 to 173.230.240.197 lookup NewYork
1301: from 172.0.0.2 lookup HongKong
32766: from all lookup main
32767: from all lookup default
admin@RT-AC68U:/jffs/scripts# ./VPN_Client_Switch.sh ?
(VPN_Client_Switch.sh): 15949 Starting..... [?]
(VPN_Client_Switch.sh): 15949 VPN Client Status:
(VPN_Client_Switch.sh): 15949 Client 1 connected (NewYork)
admin@RT-AC68U:/jffs/scripts# ./VPN_Client_Switch.sh 2
(VPN_Client_Switch.sh): 15990 Starting..... [2]
(VPN_Client_Switch.sh): 15990 Stopping VPN Client 1
(VPN_Client_Switch.sh): 15990 Blocking WAN for VPN Client 1 to 113.29.228.130
(vpnrouting.sh): 16049 Patched by John9527/Martineau /usr/sbin/vpnrouting.sh wan_block tun11
openvpn-routing: WAN access blocked for all VPN Client 1 (NewYork) devices/subnets.
(VPN_Client_Switch.sh): 15990 Waiting for VPN Client 1 (NewYork) to disconnect.....
(VPN_Client_Switch.sh): 15990 VPN Client 1 (NewYork) disconnect'd in 2 secs
(VPN_Client_Switch.sh): 15990 Starting VPN Client 2
(VPN_Client_Switch.sh): 15990 Flushing VPN Client 2 route 192.157.56.146 (HongKong)
(VPN_Client_Switch.sh): 15990 Waiting for VPN Client 2 (HongKong) to connect.....
(VPN_Client_Switch.sh): 15990 VPN Client 2 (HongKong) connect'd in 9 secs
(VPN_Client_Switch.sh): 15990 Complete.
admin@RT-AC68U:/jffs/scripts# ip route show table 111
prohibit default
admin@RT-AC68U:/jffs/scripts# ./VPN_Client_Switch.sh ?
(VPN_Client_Switch.sh): 16670 Starting..... [?]
(VPN_Client_Switch.sh): 16670 VPN Client Status:
(VPN_Client_Switch.sh): 16670 Client 2 connected (HongKong)