Add router config
This commit is contained in:
parent
f39aa5037b
commit
594d842857
@ -5,5 +5,16 @@
|
||||
wireguard-tools
|
||||
];
|
||||
|
||||
# services.bird2.enable = true;
|
||||
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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user