mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2024-11-22 16:24:02 +01:00
11 lines
360 B
Nix
11 lines
360 B
Nix
|
{
|
||
|
# 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
|
||
|
'';
|
||
|
networking.firewall.extraStopCommands = ''
|
||
|
ip6tables -D nixos-fw -p tcp --source 2a03:4000:62:fdb::/128 --dport 9273 -j nixos-fw-accept || true
|
||
|
'';
|
||
|
}
|
||
|
|