profiles/dn42-router: Take over config from configuration/dn42
This commit is contained in:
parent
032987bce5
commit
cfbeab8706
@ -4,7 +4,6 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../configuration/dn42
|
|
||||||
];
|
];
|
||||||
|
|
||||||
profiles.clerie.mercury-vm.enable = true;
|
profiles.clerie.mercury-vm.enable = true;
|
||||||
|
@ -103,6 +103,25 @@ in {
|
|||||||
};
|
};
|
||||||
systemd.network.config.addRouteTablesToIPRoute2 = true;
|
systemd.network.config.addRouteTablesToIPRoute2 = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wireguard-tools
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"net.ipv4.ip_forward" = true;
|
||||||
|
"net.ipv6.conf.all.forwarding" = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.checkReversePath = false;
|
||||||
|
|
||||||
|
# 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
|
||||||
|
'';
|
||||||
|
|
||||||
systemd.network.netdevs."10-lo-dn42" = {
|
systemd.network.netdevs."10-lo-dn42" = {
|
||||||
netdevConfig = {
|
netdevConfig = {
|
||||||
Kind = "dummy";
|
Kind = "dummy";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user