From 401e575602526407314123ed67257e8723f8c1ac Mon Sep 17 00:00:00 2001 From: Wang Sen Di Date: Thu, 25 Dec 2025 10:42:13 +0800 Subject: [PATCH] - --- netflow/iptables.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/netflow/iptables.sh b/netflow/iptables.sh index a37a450..b819c0c 100644 --- a/netflow/iptables.sh +++ b/netflow/iptables.sh @@ -31,7 +31,20 @@ __main __help() { cat >/dev/null <<-'EOF' + iptables -t mangle -S OUTPUT \ + | grep -- '--gid-owner' \ + | sed 's/^-A /-D /' \ + | while read rule; do + iptables -t mangle $rule + done + ip6tables -t mangle -S OUTPUT \ + | grep -- '--gid-owner' \ + | sed 's/^-A /-D /' \ + | while read rule; do + ip6tables -t mangle $rule + done + EOF }