diff --git a/stop.d/secondary_ip_route.sh b/stop.d/secondary_ip_route.sh index 3ea1d74..8b4bae7 100644 --- a/stop.d/secondary_ip_route.sh +++ b/stop.d/secondary_ip_route.sh @@ -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"