@@ -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
4752In the ` nat ` table, Docker creates chain ` DOCKER ` and adds rules to implement
4853masquerading and port-mapping.
@@ -53,6 +58,8 @@ Packets that get accepted or rejected by rules in these custom chains will not
5358be seen by user-defined rules appended to the ` FORWARD ` chain. So, to add
5459additional 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
5865When packets arrive to the ` DOCKER-USER ` chain, they have already passed through
0 commit comments