Forward port 80 to mail servers for the http acme challange

This commit is contained in:
yuri 2023-09-19 16:48:17 +02:00
parent 6c6cfb6da8
commit cae1284094
2 changed files with 14 additions and 2 deletions

View file

@ -45,11 +45,18 @@
enable = true; enable = true;
internalInterfaces = [ "wg0" ]; internalInterfaces = [ "wg0" ];
externalInterface = "ens6"; externalInterface = "ens6";
forwardPorts = [{ forwardPorts = [
{
destination = "172.18.50.2:25"; destination = "172.18.50.2:25";
proto = "tcp"; proto = "tcp";
sourcePort = 25; sourcePort = 25;
}]; }
{
destination = "172.18.50.2:80";
proto = "tcp";
sourcePort = 80;
}
];
}; };
}; };

View file

@ -80,6 +80,11 @@
proto = "tcp"; proto = "tcp";
sourcePort = 25; sourcePort = 25;
} }
{
destination = "172.18.50.2:80";
proto = "tcp";
sourcePort = 80;
}
{ {
destination = "172.18.50.2:465"; destination = "172.18.50.2:465";
proto = "tcp"; proto = "tcp";