From e2200e951630fb22e81a073842310ed05ff4eba5 Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 3 Feb 2023 00:16:41 +0100 Subject: [PATCH] configuration/router: use nixos-fw chain --- configuration/router/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configuration/router/default.nix b/configuration/router/default.nix index 4a17e71..afc974e 100644 --- a/configuration/router/default.nix +++ b/configuration/router/default.nix @@ -20,10 +20,8 @@ networking.firewall.extraCommands = '' # Open fireall for OSPF - ip6tables -A INPUT -p ospfigp -j ACCEPT - iptables -A INPUT -p ospfigp -j ACCEPT + ip46tables -A nixos-fw -p ospfigp -j nixos-fw-accept # Open firewall for GRE - ip6tables -A INPUT -p gre -j ACCEPT - iptables -A INPUT -p gre -j ACCEPT + ip46tables -A nixos-fw -p gre -j nixos-fw-accept ''; }