ColinTaylor
Part of the Furniture
Assuming you're using the default values and VPN server #1 (i.e. 10.8.0.0/255.255.255.0) then try using this:When I use openvpn, its not working, because it's another subnet. How to add it to the script?
Code:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_replace "hosts allow =" "hosts allow = 10.8.0.0/255.255.255.0 192.168.1.1/255.255.255.0" $CONFIG