1
0
Fork 0

Open firewall for gre

This commit is contained in:
clerie 2021-01-10 22:28:50 +01:00
parent 18ccdbf288
commit b6caebc4ef
1 changed files with 11 additions and 5 deletions

View File

@ -10,11 +10,17 @@
"net.ipv6.conf.all.forwarding" = true; "net.ipv6.conf.all.forwarding" = true;
}; };
# Open Firewall for BGP networking.firewall.allowedTCPPorts = [
networking.firewall.allowedTCPPorts = [ 179 ]; # Open Firewall for BGP
# Open Fireall for OSPF 179
];
networking.firewall.extraCommands = '' networking.firewall.extraCommands = ''
ip6tables -A INPUT -p ospfigp -j ACCEPT # Open fireall for OSPF
iptables -A INPUT -p ospfigp -j ACCEPT ip6tables -A INPUT -p ospfigp -j ACCEPT
iptables -A INPUT -p ospfigp -j ACCEPT
# Open firewall for GRE
ip6tables -A INPUT -p gre -j ACCEPT
iptables -A INPUT -p gre -j ACCEPT
''; '';
} }