Files
runneros/mkosi.extra/usr/lib/gitea-runner/firewall.nft
T
Job79andClaude Opus 5.5 d4eebeb01f
os / os (push) Failing after 45s
job / job (push) Failing after 1m3s
mkosi-based Gitea runner OS and job image
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 22:43:46 +01:00

23 lines
855 B
Plaintext

# Firewall: drop all incoming traffic except replies, loopback, ICMP and DHCPv6.
# Loaded by nftables.service. Jobs live on podman bridges (podman*): they may reach the
# internet, DNS on their bridge, and the runner's cache server (config.yaml), nothing else here.
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
iifname "podman*" meta l4proto { tcp, udp } th dport 53 accept
iifname "podman*" tcp dport 8088 accept
}
chain forward {
type filter hook forward priority filter; policy drop;
ct state established,related accept
ct state invalid drop
iifname "podman*" accept
}
}