This commit is contained in:
iFargle 2023-10-08 14:24:19 +09:00
parent c5a51d24ec
commit 29f30158a3

View file

@ -63,7 +63,6 @@
enable = true; enable = true;
internalInterfaces = [ "wireguard0" ]; internalInterfaces = [ "wireguard0" ];
externalInterface = "eno3"; externalInterface = "eno3";
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 = [ forwardPorts = [
{ sourcePort = 80; destination = "10.100.0.2:80"; } { sourcePort = 80; destination = "10.100.0.2:80"; }
{ sourcePort = 443; destination = "10.100.0.2:443"; } { sourcePort = 443; destination = "10.100.0.2:443"; }