From df065ba7f63a1277f9f71d55605d0e7df77886d3 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 8 Oct 2023 13:39:34 +0900 Subject: [PATCH] Test --- nixos/hosts/osaka-vultr-01/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/hosts/osaka-vultr-01/default.nix b/nixos/hosts/osaka-vultr-01/default.nix index 2aeb2f1f..c6b243d8 100644 --- a/nixos/hosts/osaka-vultr-01/default.nix +++ b/nixos/hosts/osaka-vultr-01/default.nix @@ -63,10 +63,10 @@ enable = true; internalInterfaces = [ "wireguard0" ]; externalInterface = "eno3"; - extraCommands = ''iptables -t nat -A nixos-nat-post -d 10.100.0.2 --dport 80 -j SNAT --to-source 10.100.0.1''; + extraCommands = ''${pkgs.iptables}/bin/iptables -t nat -A nixos-nat-post -d 10.100.0.2 --dport 80 -j SNAT --to-source 10.100.0.1''; forwardPorts = [ - { sourcePort = 80; destination = "10.100.0.2:80"; } - { sourcePort = 443; destination = "10.100.0.2:443"; } + { sourcePort = 80; destination = "10.100.0.2"; } + { sourcePort = 443; destination = "10.100.0.2"; } ]; }; } \ No newline at end of file