2020-12-07 15:19:02 +01:00
|
|
|
{ pkgs, ... }:
|
2020-12-07 15:14:33 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wireguard-tools
|
|
|
|
];
|
2020-12-07 15:41:43 +01:00
|
|
|
|
2020-12-15 18:15:50 +01:00
|
|
|
boot.kernel.sysctl = {
|
|
|
|
"net.ipv4.ip_forward" = true;
|
|
|
|
"net.ipv6.conf.all.forwarding" = true;
|
|
|
|
};
|
|
|
|
|
2020-12-17 01:35:27 +01:00
|
|
|
# Open Firewall for BGP
|
|
|
|
networking.firewall.allowedTCPPorts = [ 179 ];
|
2020-12-15 18:15:50 +01:00
|
|
|
# Open Fireall for OSPF
|
|
|
|
networking.firewall.extraCommands = ''
|
|
|
|
ip6tables -A INPUT -p ospfigp -j ACCEPT
|
|
|
|
iptables -A INPUT -p ospfigp -j ACCEPT
|
|
|
|
'';
|
2020-12-07 15:14:33 +01:00
|
|
|
}
|