stellio: allow ssh over yggdrasil

The router service only opens SSH to the mgmt VLAN, the staging port
and the ZeroTier mesh. Also admit it on the yggdrasil interface (`ygg`,
as named by clan-core's service) so the box stays reachable when
ZeroTier is down. Interface-scoped, so a spoofed 200::/7 source on the
WAN never matches.
This commit is contained in:
kurogeek committed 2026-10-02 07:53:47 +00:00
1 parent c95f74be25
commit 7469976750
1 file changed
+11
+11
View File
@@ -83,6 +83,17 @@
'') '')
]; ];
# The router service opens SSH only to the mgmt VLAN, the staging port
# and the ZeroTier mesh (inventories/router.nix). Also admit it over
# Yggdrasil (fleet-wide instance in inventories/default.nix) so the box
# stays reachable when ZeroTier's controller/relays are down. Scoped to
# the tunnel interface (clan-core's yggdrasil service names it `ygg`):
# only decrypted 200::/7 traffic arrives there, so a spoofed source on
# the WAN never matches.
networking.firewall.interfaces.${config.services.yggdrasil.settings.IfName}.allowedTCPPorts = [
22
];
systemd.services.heartbeat-push = { systemd.services.heartbeat-push = {
description = "Heartbeat push to uptime monitor"; description = "Heartbeat push to uptime monitor";
serviceConfig = { serviceConfig = {