mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-21 23:54:22 +01:00
Wireguard
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
090684d8f5
commit
b0eaa7929d
|
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue