This commit is contained in:
iFargle 2023-10-08 16:01:21 +09:00
parent 821f59d67b
commit 13c90925e2

View file

@ -60,8 +60,8 @@
}; };
networking.firewall.extraCommands = " networking.firewall.extraCommands = "
${pkgs.iptables}/bin/ -t nat -A POSTROUTING -d 10.100.0.2 -p tcp -m tcp --dport 80 -j MASQUERADE ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -d 10.100.0.2 -p tcp -m tcp --dport 80 -j MASQUERADE
${pkgs.iptables}/bin/ -t nat -A POSTROUTING -d 10.100.0.2 -p tcp -m tcp --dport 443 -j MASQUERADE ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -d 10.100.0.2 -p tcp -m tcp --dport 443 -j MASQUERADE
"; ";
networking.nat = { networking.nat = {
enable = true; enable = true;