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

Problem with NAT to docker container

NAT
2
2
672
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 Oct 20, 2022, 7:45 AM Oct 20, 2022, 7:42 AM

    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
    login-to-view
    login-to-view
    login-to-view
    login-to-view

    Any idea why this happens?

    V 1 Reply Last reply Oct 20, 2022, 6:29 PM Reply Quote 0
    • V
      viragomann @RSC
      last edited by Oct 20, 2022, 6:29 PM

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

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