From 31a1f8ef4a734635ea60b35b0bcc14ad663f18ca Mon Sep 17 00:00:00 2001 From: eyebrow Date: Sun, 25 Aug 2024 10:01:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dnftables=E8=A7=84?= =?UTF-8?q?=E5=88=99=E9=87=8D=E5=A4=8D=E6=8F=92=E5=85=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index c2635f5..2d93f13 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1277,7 +1277,7 @@ start_nftables() { #nftables配置总入口 nft list chain inet fw4 forward >/dev/null 2>&1 || nft add chain inet fw4 forward { type filter hook forward priority filter \; } 2>/dev/null nft list chain inet fw4 input >/dev/null 2>&1 || nft add chain inet fw4 input { type filter hook input priority filter \; } 2>/dev/null nft list chain inet fw4 forward | grep -q 'oifname "utun" accept' || nft insert rule inet fw4 forward oifname "utun" accept - nft list chain inet fw4 input | grep -q 'oifname "utun" accept' || nft insert rule inet fw4 input iifname "utun" accept + nft list chain inet fw4 input | grep -q 'iifname "utun" accept' || nft insert rule inet fw4 input iifname "utun" accept } [ "$local_proxy" = true ] && start_nft_route output output route -150 }