summaryrefslogtreecommitdiffstats
path: root/systems
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-23 16:04:58 +0000
committertv <tv@krebsco.de>2026-11-23 17:16:40 +0100
commit478227378a84ddb488c1cf5a79df82a502644e5d (patch)
treeff18e451b8474869f597eaaffe22974b18605478 /systems
parent7baf312c7ca160bc64df29bc2e3b91bb6a2d416b (diff)
ne: enable hrm.nftables
Diffstat (limited to 'systems')
-rw-r--r--systems/ne/config.nix18
1 files changed, 7 insertions, 11 deletions
diff --git a/systems/ne/config.nix b/systems/ne/config.nix
index eff9a17d..69687eb5 100644
--- a/systems/ne/config.nix
+++ b/systems/ne/config.nix
@@ -44,21 +44,17 @@
'';
};
- tv.iptables.extra.nat.OUTPUT = [
- "-o lo -p tcp --dport 11423 -j REDIRECT --to-ports 22"
- ];
-
+ # Exempt these interfaces from configs/sshd.nix's port 22 redirect,
+ # which would also catch forwarded ssh.
# This is also required to access rut.jane.
- tv.iptables.extra.nat.PREROUTING = [
- "-i lo -j ACCEPT"
- "-i retiolum -j ACCEPT"
- "-i wiregrill -j ACCEPT"
- "-p tcp --dport 22 -j REDIRECT --to-ports 0"
- "-p tcp --dport 11423 -j REDIRECT --to-ports 22"
- ];
+ hrm.nftables.tables.nat.chains.prerouting.rules.ssh-interfaces = {
+ order = 800;
+ text = ''iifname { "lo", "retiolum", "wiregrill" } accept'';
+ };
})
({ config, ... }: {
+ hrm.nftables.enable = true;
krebs.build.host = config.krebs.hosts.ne;
})