homek8s/infrastructure/garage-linode/host/wal-archive-firewall.service

22 lines
808 B
SYSTEMD
Raw Permalink Normal View History

# /etc/systemd/system/wal-archive-firewall.service (linode)
#
# Host unit, installed by hand (not Flux-managed) — the file lives in git at
# infrastructure/garage-linode/host/. Same shape as garage-firewall.service on
# the Pi and k8s-api-firewall.service on siriussec.
#
# No Requires= on wg-quick@wg0: the tunnel is enabled at boot on this host but a
# hard dependency would turn a transient tunnel failure into "store unguarded
# and unit failed". The table only filters; it can load before the interface
# exists.
[Unit]
Description=Drop off-WireGuard inbound to the Garage WAL archive (3900/3903)
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/nft -f /etc/nftables.d/wal_archive_guard.nft
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target