Merge pull request #285 from NixOS/merge-when-green-joerg

monitoring: update ip6
This commit is contained in:
Jörg Thalheim
2025-07-09 12:35:58 +00:00
committed by GitHub

View File

@ -1,9 +1,9 @@
{
# Allow Mic92's prometheus server to access telegraf
networking.firewall.extraCommands = ''
ip6tables -A nixos-fw -p tcp --source 2a03:4000:62:fdb::/128 --dport 9273 -j nixos-fw-accept
ip6tables -A nixos-fw -p tcp --source 2a01:4f8:1c1a:37b2::1/128 --dport 9273 -j nixos-fw-accept
'';
networking.firewall.extraStopCommands = ''
ip6tables -D nixos-fw -p tcp --source 2a03:4000:62:fdb::/128 --dport 9273 -j nixos-fw-accept || true
ip6tables -D nixos-fw -p tcp --source 2a01:4f8:1c1a:37b2::1/128 --dport 9273 -j nixos-fw-accept || true
'';
}