nixos/ports.toml
ediblerope 568b815d8d router: allow docker0 forward and expose 7dtd-coop ports
Container outbound (image pulls, LinuxGSM bootstrap fetches) was
dropped by the inet filter forward chain — only eth0 and DNAT'd
WAN traffic were whitelisted. Add iifname "docker0" accept so
containers can reach the internet.

Also add the coop server's 26910/26911-26912 forwards to ports.toml
so WAN players can connect.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 15:35:26 +01:00

46 lines
924 B
TOML

# ports.toml — WAN → LAN port forwards for the router (services/router.nix)
#
# Each [[forward]] block adds a DNAT rule from WAN to the LAN IP below.
# Fields:
# name — human label, appears in journal logs
# port — single port (number), e.g. 443
# ports — port range as a string, e.g. "26901-26902"
# protocol — "tcp", "udp", or "both"
# dest — LAN IP to forward to (optional; defaults to 10.0.0.1)
dest_default = "10.0.0.1"
[[forward]]
name = "HTTP"
port = 80
protocol = "tcp"
[[forward]]
name = "HTTPS"
port = 443
protocol = "tcp"
[[forward]]
name = "SSH"
port = 22
protocol = "tcp"
[[forward]]
name = "7DTD game"
port = 26900
protocol = "both"
[[forward]]
name = "7DTD voice/dynamic"
ports = "26901-26902"
protocol = "udp"
[[forward]]
name = "7DTD-coop game"
port = 26910
protocol = "both"
[[forward]]
name = "7DTD-coop voice/dynamic"
ports = "26911-26912"
protocol = "udp"