This commit is contained in:
iFargle 2023-10-08 14:23:23 +09:00
parent 151eae0fe8
commit c5a51d24ec

View file

@ -65,8 +65,8 @@
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''; 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"; } { sourcePort = 80; destination = "10.100.0.2:80"; }
{ sourcePort = 443; destination = "10.100.0.2"; } { sourcePort = 443; destination = "10.100.0.2:443"; }
]; ];
}; };
} }