From eb1dc094f12b77abf0dfc0b3d5a0a40e00e74340 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Wed, 28 Jun 2023 14:45:27 +0200 Subject: [PATCH] More Wireguard Signed-off-by: Magic_RB --- nixos/systems/toothpick/networking.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/systems/toothpick/networking.nix b/nixos/systems/toothpick/networking.nix index 5a7ec91..4ab71ea 100644 --- a/nixos/systems/toothpick/networking.nix +++ b/nixos/systems/toothpick/networking.nix @@ -43,7 +43,7 @@ in nat.forwardPorts = [ { - destination = "127.0.0.1:6666"; + destination = "64.225.104.221:6666"; proto = "udp"; sourcePort = 500; } @@ -52,6 +52,7 @@ in firewall = { extraCommands = '' iptables -P FORWARD DROP + iptables -t nat -I PREROUTING -i eth0 -d 64.225.104.221/32 -p udp -m multiport --dports 500 -j REDIRECT --to-ports 6666 ''; interfaces."eth0" = {