fix
This commit is contained in:
parent
bb6e87d645
commit
fa11b80176
|
@ -2,4 +2,4 @@
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
default_iface=$(ip route | grep default | awk '{print $5}')
|
default_iface=$(ip route | grep default | awk '{print $5}')
|
||||||
iptables -t nat -I POSTROUTING -s "$OVPN_NET_SUBNET" -o "$default_iface" -j SNAT --to-source "$OVPN_PUBLIC_IP"
|
iptables -t nat -D POSTROUTING -s "$OVPN_NET_SUBNET" -o "$default_iface" -j SNAT --to-source "$OVPN_PUBLIC_IP"
|
||||||
|
|
Loading…
Reference in a new issue