clients: Add support for static subnet
* Allow static clients to be placed on 192.168.254.0/24 subnet.
This commit is contained in:
@ -15,6 +15,9 @@ if [ ! -d "$OPENVPN/ccd" ]; then
|
||||
mkdir -p /etc/openvpn/ccd
|
||||
fi
|
||||
|
||||
# Static subnet
|
||||
iptables -t nat -A POSTROUTING -s 192.168.254.0/24 -o eth0 -j MASQUERADE
|
||||
# Dynamic subnet
|
||||
iptables -t nat -A POSTROUTING -s 192.168.255.0/24 -o eth0 -j MASQUERADE
|
||||
|
||||
openvpn --config "$OPENVPN/udp1194.conf"
|
||||
|
Reference in New Issue
Block a user