更新 TS 防火墙备注

This commit is contained in:
CallMeR
2023-11-29 14:06:15 +08:00
parent 7fc7ab2466
commit 165f6ea9dc
+7 -7
View File
@@ -29,7 +29,7 @@ table inet router {
ct state invalid counter drop comment "defconf: drop input flows with invalid conntrack state" ct state invalid counter drop comment "defconf: drop input flows with invalid conntrack state"
tcp flags & (fin | syn | rst | ack) == syn counter jump syn_flood comment "defconf: rate limit TCP-SYN packets" tcp flags & (fin | syn | rst | ack) == syn counter jump syn_flood comment "defconf: rate limit TCP-SYN packets"
iifname "eth0" jump input_lan comment "defconf: handle LAN IPv4 / IPv6 input traffic" iifname "eth0" jump input_lan comment "defconf: handle LAN IPv4 / IPv6 input traffic"
iifname "tailscale0" counter jump input_tailscale comment "tsconf: handle Tailscale IPv4 / IPv6 input traffic" iifname "tailscale0" counter jump input_tailscale comment "tsconf: handle TS IPv4 / IPv6 input traffic"
} }
chain forward { chain forward {
@@ -38,7 +38,7 @@ table inet router {
ct state established,related accept comment "defconf: allow forwarded established and related flows" ct state established,related accept comment "defconf: allow forwarded established and related flows"
ct state invalid counter drop comment "defconf: drop forward flows with invalid conntrack state" ct state invalid counter drop comment "defconf: drop forward flows with invalid conntrack state"
iifname "eth0" jump forward_lan comment "defconf: handle LAN IPv4 / IPv6 forward traffic" iifname "eth0" jump forward_lan comment "defconf: handle LAN IPv4 / IPv6 forward traffic"
iifname "tailscale0" counter jump forward_tailscale comment "tsconf: handle Tailscale IPv4 / IPv6 forward traffic" iifname "tailscale0" counter jump forward_tailscale comment "tsconf: handle TS IPv4 / IPv6 forward traffic"
} }
chain output { chain output {
@@ -47,7 +47,7 @@ table inet router {
ct state established,related accept comment "defconf: allow outbound established and related flows" ct state established,related accept comment "defconf: allow outbound established and related flows"
ct state invalid counter drop comment "defconf: drop output flows with invalid conntrack state" ct state invalid counter drop comment "defconf: drop output flows with invalid conntrack state"
oifname "eth0" jump output_lan comment "defconf: handle LAN IPv4 / IPv6 output traffic" oifname "eth0" jump output_lan comment "defconf: handle LAN IPv4 / IPv6 output traffic"
oifname "tailscale0" counter jump output_tailscale comment "tsconf: handle Tailscale IPv4 / IPv6 output traffic" oifname "tailscale0" counter jump output_tailscale comment "tsconf: handle TS IPv4 / IPv6 output traffic"
} }
chain prerouting { chain prerouting {
@@ -66,7 +66,7 @@ table inet router {
} }
chain forward_lan { chain forward_lan {
jump accept_to_tailscale comment "tsconf: accept LAN to Tailscale forward" jump accept_to_tailscale comment "tsconf: accept LAN to TS forward"
ct status dnat counter accept comment "lanconf: accept port forward" ct status dnat counter accept comment "lanconf: accept port forward"
jump accept_to_lan jump accept_to_lan
} }
@@ -92,7 +92,7 @@ table inet router {
} }
chain forward_tailscale { chain forward_tailscale {
counter jump accept_to_lan comment "tsconf: accept Tailscale to LAN forward" counter jump accept_to_lan comment "tsconf: accept TS to LAN forward"
counter jump accept_to_tailscale counter jump accept_to_tailscale
} }
@@ -101,11 +101,11 @@ table inet router {
} }
chain accept_from_tailscale { chain accept_from_tailscale {
iifname "tailscale0" counter accept comment "tsconf: accept Tailscale IPv4 / IPv6 traffic" iifname "tailscale0" counter accept comment "tsconf: accept TS IPv4 / IPv6 traffic"
} }
chain accept_to_tailscale { chain accept_to_tailscale {
oifname "tailscale0" counter accept comment "tsconf: accept Tailscale IPv4 / IPv6 traffic" oifname "tailscale0" counter accept comment "tsconf: accept TS IPv4 / IPv6 traffic"
} }