Wireguard

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-06-28 14:21:54 +02:00
parent 090684d8f5
commit b0eaa7929d
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -41,6 +41,14 @@ in
dhcpcd.enable = false;
usePredictableInterfaceNames = lib.mkForce false;
nat.forwardPorts = [
{
destination = "127.0.0.1:6666";
proto = "udp";
sourcePort = 500;
}
];
firewall = {
extraCommands = ''
iptables -P FORWARD DROP
@ -54,6 +62,7 @@ in
];
allowedUDPPorts = [
6666
500
];
};