This commit is contained in:
iFargle 2023-10-08 15:59:47 +09:00
parent 29f30158a3
commit 821f59d67b

View file

@ -59,6 +59,10 @@
};
};
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/ -t nat -A POSTROUTING -d 10.100.0.2 -p tcp -m tcp --dport 443 -j MASQUERADE
";
networking.nat = {
enable = true;
internalInterfaces = [ "wireguard0" ];