19 lines
614 B
Plaintext
19 lines
614 B
Plaintext
# Firewall: drop all incoming traffic except replies, loopback, ICMP, DHCPv6 and ssh, and forward
|
|
# nothing (rootless podman's networks live in Claude's own network namespace). Loaded by
|
|
# nftables.service.
|
|
destroy table inet firewall
|
|
table inet firewall {
|
|
chain input {
|
|
type filter hook input priority filter; policy drop;
|
|
ct state established,related accept
|
|
ct state invalid drop
|
|
iif lo accept
|
|
meta l4proto { icmp, ipv6-icmp } accept
|
|
ip6 saddr fe80::/10 udp dport 546 accept
|
|
tcp dport 22 accept
|
|
}
|
|
chain forward {
|
|
type filter hook forward priority filter; policy drop;
|
|
}
|
|
}
|