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" = {