1
0

configuration/router: use nixos-fw chain

This commit is contained in:
clerie 2023-02-03 00:16:41 +01:00
parent ee61ab2b1b
commit e2200e9516

View File

@ -20,10 +20,8 @@
networking.firewall.extraCommands = '' networking.firewall.extraCommands = ''
# Open fireall for OSPF # Open fireall for OSPF
ip6tables -A INPUT -p ospfigp -j ACCEPT ip46tables -A nixos-fw -p ospfigp -j nixos-fw-accept
iptables -A INPUT -p ospfigp -j ACCEPT
# Open firewall for GRE # Open firewall for GRE
ip6tables -A INPUT -p gre -j ACCEPT ip46tables -A nixos-fw -p gre -j nixos-fw-accept
iptables -A INPUT -p gre -j ACCEPT
''; '';
} }