Skip to content

Commit 5d8acb0

Browse files
committed
sec(ipv6): add IPv6 nftables parity in namespace (DNS DNAT to ::1, drop other IPv6 egress)
1 parent 22bc5d2 commit 5d8acb0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/jail/linux/nftables.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ impl NFTable {
3333
// Generate the ruleset for host-side NAT, forwarding, and input acceptance
3434
let ruleset = format!(
3535
r#"
36-
table ip {table_name} {{
36+
table ip {table_name} {
37+
# IPv6 parity rules
38+
}}
39+
40+
table ip6 {table_name} {{
3741
chain prerouting {{
3842
type filter hook prerouting priority -150; policy accept;
3943
iifname "{veth_host}" accept comment "httpjail_{jail_id} prerouting"

0 commit comments

Comments
 (0)