summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-28 14:12:12 +0000
committertv <tv@krebsco.de>2026-12-03 02:27:04 +0000
commite018894379a737ec0801fa33686f9a3d5c4056a0 (patch)
tree1994ae678bc67adb25c1d788076421a2736a1245
parentf28ec6afc426985c680e6737597944e51616a093 (diff)
im: accept mosh and the weechat relay by hrm.nftables
-rw-r--r--modules/im.nix28
1 files changed, 16 insertions, 12 deletions
diff --git a/modules/im.nix b/modules/im.nix
index d3c5158b..8e66a3ca 100644
--- a/modules/im.nix
+++ b/modules/im.nix
@@ -87,23 +87,27 @@ in {
group = "utmp";
mode = "2111";
};
- tv.iptables.extra4.filter.Retiolum = [
- "-s ${im.client.host.nets.retiolum.ip4.addr} -p udp --dport 60000:61000 -j ACCEPT"
- ];
- tv.iptables.extra6.filter.Retiolum = [
- "-s ${im.client.host.nets.retiolum.ip6.addr} -p udp --dport 60000:61000 -j ACCEPT"
- ];
+ hrm.nftables.tables.filter.chains.retiolum.rules.im-mosh = {
+ saddr = [
+ im.client.host.nets.retiolum.ip4.addr
+ im.client.host.nets.retiolum.ip6.addr
+ ];
+ udp.dport = [ "60000-61000" ];
+ verdict = "accept";
+ };
})
(lib.mkIf im.server.weechat.relay.enable {
krebs.iana-etc.services = {
"9001".tcp.name = "weechat-ssl";
};
- tv.iptables.extra4.filter.Retiolum = [
- "-s ${im.client.host.nets.retiolum.ip4.addr} -p tcp -m tcp --dport 9001 -j ACCEPT"
- ];
- tv.iptables.extra6.filter.Retiolum = [
- "-s ${im.client.host.nets.retiolum.ip6.addr} -p tcp -m tcp --dport 9001 -j ACCEPT"
- ];
+ hrm.nftables.tables.filter.chains.retiolum.rules.im-weechat-relay = {
+ saddr = [
+ im.client.host.nets.retiolum.ip4.addr
+ im.client.host.nets.retiolum.ip6.addr
+ ];
+ tcp.dport = [ 9001 ];
+ verdict = "accept";
+ };
})
];
}
[cgit] Unable to lock slot /tmp/cgit/17100000.lock: Permission denied (13)