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