diff options
| author | tv <tv@krebsco.de> | 2026-12-03 03:08:20 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-03 03:08:20 +0000 |
| commit | 967723e28917ec975d5879b40c602ee959ae61d1 (patch) | |
| tree | ee6a702b86ac1eac4e1cf70737ba95ee716f1b28 /systems | |
| parent | 30afe247680660de367253a66d426da5e4884e3f (diff) | |
zoppo: accept mbim-reconnect's ICMPv6 by hrm.nftables
Diffstat (limited to 'systems')
| -rw-r--r-- | systems/zoppo/mbim-reconnect.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/systems/zoppo/mbim-reconnect.nix b/systems/zoppo/mbim-reconnect.nix index 00145e9f..baa08868 100644 --- a/systems/zoppo/mbim-reconnect.nix +++ b/systems/zoppo/mbim-reconnect.nix @@ -157,13 +157,17 @@ echo "$(basename "$sys_device")" > "$sys_driver"/bind || : ''; in { - tv.iptables.extra6.filter.INPUT = [ - "-p ipv6-icmp --icmpv6-type router-advertisement -m hl --hl-eq 255 -j ACCEPT" - "-p ipv6-icmp --icmpv6-type neighbour-solicitation -m hl --hl-eq 255 -j ACCEPT" - "-p ipv6-icmp --icmpv6-type neighbour-advertisement -m hl --hl-eq 255 -j ACCEPT" - "-p ipv6-icmp --icmpv6-type packet-too-big -j ACCEPT" - # -p icmp -m icmp --icmp-type echo-request -j ACCEPT is done elsewhere - ]; + hrm.nftables.tables.filter.chains.input.rules = { + mbim-nd = { + order = 1500; + text = "icmpv6 type { nd-router-advert, nd-neighbor-solicit, nd-neighbor-advert } ip6 hoplimit 255 accept"; + }; + mbim-packet-too-big = { + order = 1500; + icmpv6.type = [ "packet-too-big" ]; + verdict = "accept"; + }; + }; users.users.root.packages = [ pkgs.libmbim ]; |
