From 01f00f4bc75d7d2b725b6cf18c74d4101ee59eca Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Wed, 16 Apr 2025 14:08:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20TS=20=E9=98=B2=E7=81=AB?= =?UTF-8?q?=E5=A2=99=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/debian/debian_ts_nftables.conf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/debian/debian_ts_nftables.conf b/src/debian/debian_ts_nftables.conf index 1abe1b8..4e3dafd 100644 --- a/src/debian/debian_ts_nftables.conf +++ b/src/debian/debian_ts_nftables.conf @@ -34,7 +34,8 @@ table inet router { chain forward { type filter hook forward priority filter; policy drop; - ct state established,related goto handle_offload comment "defconf: handle forwarded flows" + ct state established,related flow add @ft comment "defconf: track forwarded flows" + ct state vmap { established : accept, related : accept, invalid : drop } comment "defconf: handle forwarded flows" iifname "eth0" jump forward_lan comment "defconf: handle LAN IPv4 / IPv6 forward traffic" iifname "tailscale0" jump forward_tailscale comment "tsconf: handle TS IPv4 / IPv6 forward traffic" } @@ -52,11 +53,6 @@ table inet router { counter drop comment "defconf: drop excess new TCP connections" } - chain handle_offload { - flow add @ft accept comment "defconf: track forwarded flows" - accept - } - chain input_lan { ct status dnat accept comment "lanconf: accept port redirect" jump accept_from_lan @@ -77,7 +73,6 @@ table inet router { } chain accept_to_lan { - meta nfproto ipv4 oifname "eth0" ct state invalid counter drop comment "defconf: prevent LAN NATv4 leakage" oifname "eth0" accept comment "defconf: accept LAN IPv4 / IPv6 traffic" }