summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-03 03:54:03 +0000
committertv <tv@krebsco.de>2026-12-03 03:54:03 +0000
commitef7ef13a0b1b1f2d12b2092733ff0e4dffd0abd3 (patch)
treeb3b2261b9d83b602e1f42e72dcc5c705a66c585f
parent039d467435e4390fc41e8265da7f34a0caf2443c (diff)
firewall: ports by name
-rw-r--r--configs/sshd.nix4
-rw-r--r--modules/im.nix2
2 files changed, 3 insertions, 3 deletions
diff --git a/configs/sshd.nix b/configs/sshd.nix
index cb6d8a63..1f7ea5e2 100644
--- a/configs/sshd.nix
+++ b/configs/sshd.nix
@@ -20,11 +20,11 @@ in {
daddr =
map (net: net.ip4.addr) (builtins.filter (net: net.ip4 != null) nets) ++
map (net: net.ip6.addr) (builtins.filter (net: net.ip6 != null) nets);
- tcp.dport = [ 22 ];
+ tcp.dport = [ "ssh" ];
verdict = "accept";
};
ssh-hide = {
- tcp.dport = [ 22 ];
+ tcp.dport = [ "ssh" ];
verdict = "redirect to :0";
};
ssh-port = {
diff --git a/modules/im.nix b/modules/im.nix
index 8e66a3ca..daf2dbf4 100644
--- a/modules/im.nix
+++ b/modules/im.nix
@@ -105,7 +105,7 @@ in {
im.client.host.nets.retiolum.ip4.addr
im.client.host.nets.retiolum.ip6.addr
];
- tcp.dport = [ 9001 ];
+ tcp.dport = [ "weechat-ssl" ];
verdict = "accept";
};
})
[cgit] Unable to lock slot /tmp/cgit/84300000.lock: Permission denied (13)