This commit is contained in:
Farid Musa 2024-01-01 22:29:54 +04:00
parent bb6e87d645
commit fa11b80176
1 changed files with 1 additions and 1 deletions

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"