Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Problem with NAT to docker container

    NAT
    2
    2
    674
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RSC
      last edited by RSC

      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
      5e4cba8e-a323-4e55-8738-85bb59c451e7-image.png
      7c1ed45b-7b06-4262-a834-139c5297f4fc-image.png
      8133f1e0-5424-42b3-99ec-aef2ea94621b-image.png
      e9c776be-d705-4c52-bc57-23cb8f9ca285-image.png

      Any idea why this happens?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @RSC
        last edited by

        @rsc
        The source ports in the NAT rules have to be "any". They are dynamic.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.