From 478227378a84ddb488c1cf5a79df82a502644e5d Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 23 Nov 2026 16:04:58 +0000 Subject: ne: enable hrm.nftables --- systems/ne/config.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'systems') 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; }) -- cgit v1.3.1