From fa11b80176e8c841d10aa20b4c7473a1fa1c3869 Mon Sep 17 00:00:00 2001 From: Farid Musa Date: Mon, 1 Jan 2024 22:29:54 +0400 Subject: [PATCH] fix --- stop.d/secondary_ip_route.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"