1
0
Fork 0
mirror of synced 2024-05-26 20:11:14 -04:00
This commit is contained in:
Farid Musa 2024-01-01 22:29:54 +04:00
parent bb6e87d645
commit fa11b80176

View file

@ -2,4 +2,4 @@
set -ex
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"