From 9047bc285ed2623a0d456d87d28d19966790b575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B4=BA?= Date: Wed, 5 Feb 2025 18:42:51 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(firewall):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=A4=8D=E6=9D=82=E8=BD=AC=E5=8F=91=E8=A7=84=E5=88=99=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99=20(#7791)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7905dd00a629991840f28250e41bdcb31691acf6. --- backend/utils/firewall/client/iptables.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/utils/firewall/client/iptables.go b/backend/utils/firewall/client/iptables.go index e691b00369d68..e299c89f48a98 100644 --- a/backend/utils/firewall/client/iptables.go +++ b/backend/utils/firewall/client/iptables.go @@ -192,9 +192,8 @@ func (iptables *Iptables) NatRemove(num string, protocol, srcPort, dest, destPor // 删除公网转发规则 if dest != "" && dest != "127.0.0.1" && dest != "localhost" { if err := iptables.runf(NatTab, fmt.Sprintf( - "-D %s -p %s -d %s --dport %s -j MASQUERADE", + "-D %s -p %s --dport %s -j DNAT MASQUERADE", PostRoutingChain, - dest, protocol, destPort, )); err != nil {