use sysctl knob to enable forwarding, remove nat block
This commit is contained in:
parent
193e73e4a8
commit
a2d5333f01
@ -52,16 +52,12 @@ in {
|
|||||||
dns = resolvers;
|
dns = resolvers;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.kernel.sysctl = { "net.ipv6.conf.all.forwarding" = 1; };
|
||||||
|
|
||||||
imports = [ ./wireguard.nix ];
|
imports = [ ./wireguard.nix ];
|
||||||
|
|
||||||
wireguard.interfaces = tunnels;
|
wireguard.interfaces = tunnels;
|
||||||
|
|
||||||
networking.firewall = { allowedUDPPorts = map (x: x.serverPort) tunnels; };
|
networking.firewall = { allowedUDPPorts = map (x: x.serverPort) tunnels; };
|
||||||
|
|
||||||
networking.nat = {
|
|
||||||
enable = true;
|
|
||||||
externalInterface = egress.interface;
|
|
||||||
internalInterfaces = map (x: x.interface) tunnels;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user