1
0

Open Firewall for bgp and ospf

This commit is contained in:
clerie 2020-12-08 13:37:00 +01:00
parent aff98955f3
commit fe6791d424

View File

@ -45,6 +45,12 @@
#ip -6 rule add from fd56:4902:eca0::/48 to all unreachable prio 20000 #ip -6 rule add from fd56:4902:eca0::/48 to all unreachable prio 20000
#''; #'';
networking.firewall.allowedTCPPorts = [
179
];
networking.firewall.extraCommands = "ip6tables -A INPUT -p ospfigp -j ACCEPT";
networking.firewall.extraCommands = "iptables -A INPUT -p ospfigp -j ACCEPT";
services.bird2.enable = true; services.bird2.enable = true;
services.bird2.config = '' services.bird2.config = ''
router id ${ (lib.head config.networking.interfaces.ens18.ipv4.addresses).address }; router id ${ (lib.head config.networking.interfaces.ens18.ipv4.addresses).address };