Skip to content

Commit 4c517e9

Browse files
committed
Add new DOCKER-FORWARD chain to the iptables description
Signed-off-by: Rob Murray <[email protected]>
1 parent b112436 commit 4c517e9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,22 @@ following custom `iptables` chains:
3232

3333
* `DOCKER-USER`
3434
* A placeholder for user-defined rules that will be processed before rules
35-
in the `DOCKER` chain.
35+
in the `DOCKER-FORWARD` and `DOCKER` chains.
36+
* `DOCKER-FORWARD`
37+
* The first stage of processing for Docker's networks. Rules that pass packets
38+
that are not related to established connections to the other Docker chains,
39+
as well as rules to accept packets that are part of established connections.
3640
* `DOCKER`
3741
* Rules that determine whether a packet that is not part of an established
3842
connection should be accepted, based on the port forwarding configuration
3943
of running containers.
4044
* `DOCKER-ISOLATION-STAGE-1` and `DOCKER-ISOLATION-STAGE-2`
4145
* Rules to isolate Docker networks from each other.
46+
* `DOCKER-INGRESS`
47+
* Rules related to Swarm networking.
4248

43-
In the `FORWARD` chain, Docker adds rules that pass packets that are not related
44-
to established connections to these custom chains, as well as rules to accept
45-
packets that are part of established connections.
49+
In the `FORWARD` chain, Docker adds rules that unconditionally jump to the
50+
`DOCKER-USER`, `DOCKER-FORWARD` and `DOCKER-INGRESS` chains.
4651

4752
In the `nat` table, Docker creates chain `DOCKER` and adds rules to implement
4853
masquerading and port-mapping.
@@ -53,6 +58,8 @@ Packets that get accepted or rejected by rules in these custom chains will not
5358
be seen by user-defined rules appended to the `FORWARD` chain. So, to add
5459
additional rules to filter these packets, use the `DOCKER-USER` chain.
5560

61+
Rules appended to the `FORWARD` chain will be processed after Docker's rules.
62+
5663
### Match the original IP and ports for requests
5764

5865
When packets arrive to the `DOCKER-USER` chain, they have already passed through

0 commit comments

Comments
 (0)