diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-06-19 19:48:09 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-06-19 19:48:09 -0700 |
commit | c19715cf48708f2e3fe710da703bfa331c7b0d63 (patch) | |
tree | 832b0134462b2f3f36b6f7c1f2cf886265c61c2e /hosts/darkstar | |
parent | 00d9ab4e97e2d052db416e307ae3817355bfbb07 (diff) | |
download | nix-c19715cf48708f2e3fe710da703bfa331c7b0d63.tar nix-c19715cf48708f2e3fe710da703bfa331c7b0d63.tar.gz nix-c19715cf48708f2e3fe710da703bfa331c7b0d63.tar.bz2 nix-c19715cf48708f2e3fe710da703bfa331c7b0d63.tar.lz nix-c19715cf48708f2e3fe710da703bfa331c7b0d63.tar.xz nix-c19715cf48708f2e3fe710da703bfa331c7b0d63.tar.zst nix-c19715cf48708f2e3fe710da703bfa331c7b0d63.zip |
Fix typo
Diffstat (limited to '')
-rw-r--r-- | hosts/darkstar/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/darkstar/default.nix b/hosts/darkstar/default.nix index a3d82e1..b9b4e39 100644 --- a/hosts/darkstar/default.nix +++ b/hosts/darkstar/default.nix @@ -95,7 +95,7 @@ systemd.services."nftables-extra" = { description = "nftables extra firewall rules"; script = '' - ${pkgs.nftables}/bin/nft -a list chain inet nixos-fw input | ${pkgs.gnugrep}/bin/grep @anveo | ${pkgs.gnugrep}/bin/grep -Eo 'handle [[:digit:]]+$' | ${pkgs.gnused}/bin/sed -e 's/^handle //' | while read handle; do ${pkgs.nftables}/bin/nft delete rule inet nixos-fw input handle ${handle}; done + ${pkgs.nftables}/bin/nft -a list chain inet nixos-fw input | ${pkgs.gnugrep}/bin/grep @anveo | ${pkgs.gnugrep}/bin/grep -Eo 'handle [[:digit:]]+$' | ${pkgs.gnused}/bin/sed -e 's/^handle //' | while read handle; do ${pkgs.nftables}/bin/nft delete rule inet nixos-fw input handle ''${handle}; done if ${pkgs.nftables}/bin/nft list set inet nixos-fw anveo 2>/dev/null; then ${pkgs.nftables}/bin/nft delete set inet nixos-fw anveo; fi if ${pkgs.nftables}/bin/nft list ct helpers table inet nixos-fw | ${pkgs.gnugrep}/bin/grep -qE '^[[:space:]]*ct helper sip-5060 {$'; then ${pkgs.nftables}/bin/nft delete ct helper inet nixos-fw sip-5060; fi ${pkgs.nftables}/bin/nft add ct helper inet nixos-fw sip-5060 '{type "sip" protocol udp;}' |