mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +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;
|
dhcpcd.enable = false;
|
||||||
usePredictableInterfaceNames = lib.mkForce false;
|
usePredictableInterfaceNames = lib.mkForce false;
|
||||||
|
|
||||||
|
nat.forwardPorts = [
|
||||||
|
{
|
||||||
|
destination = "127.0.0.1:6666";
|
||||||
|
proto = "udp";
|
||||||
|
sourcePort = 500;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
iptables -P FORWARD DROP
|
iptables -P FORWARD DROP
|
||||||
|
@ -54,6 +62,7 @@ in
|
||||||
];
|
];
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
6666
|
6666
|
||||||
|
500
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue