From e018894379a737ec0801fa33686f9a3d5c4056a0 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 28 Nov 2026 14:12:12 +0000 Subject: im: accept mosh and the weechat relay by hrm.nftables --- modules/im.nix | 28 ++++++++++++++++------------ 1 file 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 v1.3.1 [cgit] Unable to lock slot /tmp/cgit/8d000000.lock: Permission denied (13)