mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-26 17:46:23 -05:00
nftables: reorder network server UDP notrack
This commit is contained in:
parent
78bd96f4ae
commit
f3156e641d
1 changed files with 2 additions and 2 deletions
|
|
@ -51,11 +51,11 @@ table inet filter {
|
|||
# ordered after accepting loopback to permit using external IPs via loopback
|
||||
fib daddr . iif type != { local, broadcast, multicast } counter drop
|
||||
|
||||
udp dport $udp-ports notrack accept
|
||||
|
||||
# handle new TCP connections beyond rate limit via synproxy to avoid conntrack table exhaustion
|
||||
tcp dport $tcp-ports-full tcp flags syn limit rate over {{synproxy_threshold}}/second burst {{synproxy_threshold}} packets counter notrack accept
|
||||
|
||||
udp dport $udp-ports notrack accept
|
||||
|
||||
meta l4proto { tcp, udp } accept
|
||||
icmp type { echo-reply, destination-unreachable, echo-request, time-exceeded, parameter-problem } notrack accept
|
||||
meta l4proto ipv6-icmp notrack accept
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue