summaryrefslogtreecommitdiffstats
path: root/systems/ne
diff options
context:
space:
mode:
Diffstat (limited to 'systems/ne')
-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;
})