Problem with NAT to docker container
-
Hello all, i have the following problem.
I have a LAN network 10.174.30.0/24 with an vmware host (10.174.30.102) with an linux vm (10.174.30.104). On the linux vm i have a docker setup with 3 containers. I can access the docker containers (example 10.174.30.104:80 - this is ngninx proxy manager) but after I NAT the ports so they can be access from WAN it does not work.
Example: I NAT anything that comes from WAN to port 80 to 10.174.30.104 port 80 . It gives time out . Linux UFW is disable.
(I modified the source ports to any - in pics i was just testing)See pictures
Any idea why this happens?
-
@rsc
The source ports in the NAT rules have to be "any". They are dynamic.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.