Skip to content

Commit 13e1078

Browse files
committed
linux: explicitly drop all UDP egress except DNS in namespace filter
1 parent b3d5052 commit 13e1078

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/jail/linux/nftables.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ table ip {} {{
160160
udp dport 53 accept
161161
tcp dport 53 accept
162162
163+
# Explicitly block all other UDP (e.g., QUIC on 443)
164+
udp drop
165+
163166
# Allow traffic to the host proxy ports after DNAT
164167
ip daddr {} tcp dport {{ {}, {} }} accept
165168
}}

0 commit comments

Comments
 (0)