homek8s/infrastructure/networking/internal/host-firewall/internal-gw-firewall.service

17 lines
524 B
SYSTEMD
Raw Normal View History

# /etc/systemd/system/internal-gw-firewall.service (siriussec)
#
# Same shape as k8s-api-firewall.service. Installed by hand (host unit, not
# Flux-managed); the file lives in git at
# infrastructure/networking/internal/host-firewall/.
[Unit]
Description=Restrict the internal Gateway listeners (8081, 8084, 8085) to WireGuard
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/nft -f /etc/nftables.d/internal-gw.nft
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target