Skip to content

Commit d8b9d35

Browse files
authored
Merge pull request docker#22602 from robmry/moby_28_firewalling
Remote access to container ports
2 parents f6bb42e + 9424752 commit d8b9d35

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/manuals/engine/network/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ Here are some examples:
160160
>
161161
> > [!WARNING]
162162
> >
163-
> > Hosts within the same L2 segment (for example, hosts connected to the same
164-
> > network switch) can reach ports published to localhost.
163+
> > In releases older than 28.0.0, hosts within the same L2 segment (for example,
164+
> > hosts connected to the same network switch) can reach ports published to localhost.
165165
> > For more information, see
166166
> > [moby/moby#45610](https://github.com/moby/moby/issues/45610)
167167

content/manuals/engine/network/packet-filtering-firewalls.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ $ docker run --network=mynet -p 8080:80 myimage
234234
```
235235

236236
Then:
237-
- Only container port 80 will be open, for IPv4 and IPv6. It is accessible
238-
from anywhere, if there is routing to the container's address, and access
239-
is not blocked by the host's firewall.
237+
- Only container port 80 will be open, for IPv4 and IPv6.
240238
- For IPv6, using `routed` mode, port 80 will be open on the container's IP
241239
address. Port 8080 will not be opened on the host's IP addresses, and
242240
outgoing packets will use the container's IP address.
243241
- For IPv4, using the default `nat` mode, the container's port 80 will be
244-
accessible via port 8080 on the host's IP addresses, as well as directly.
242+
accessible via port 8080 on the host's IP addresses, as well as directly
243+
from within the Docker host. But, container port 80 cannot be accessed
244+
directly from outside the host.
245245
Connections originating from the container will masquerade, using the
246246
host's IP address.
247247

0 commit comments

Comments
 (0)