configuration/router: All hosts using this config don't do BGP and OSPF
This commit is contained in:
@@ -12,16 +12,4 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.checkReversePath = false;
|
networking.firewall.checkReversePath = false;
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
# Open Firewall for BGP
|
|
||||||
179
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall.extraCommands = ''
|
|
||||||
# Open fireall for OSPF
|
|
||||||
ip46tables -A nixos-fw -p ospfigp -j nixos-fw-accept
|
|
||||||
# Open firewall for GRE
|
|
||||||
ip46tables -A nixos-fw -p gre -j nixos-fw-accept
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user