integration/network/bridge/iptablesdoc/templates/usernet-portmap-natunprot.md
Running the daemon with the userland proxy disable then, as before, adding a network running a container with a mapped port, equivalent to:
docker network create \
-o com.docker.network.bridge.name=bridge1 \
-o com.docker.network.bridge.gateway_mode_ipv4=nat-unprotected \
--subnet 192.0.2.0/24 --gateway 192.0.2.1 bridge1
docker run --network bridge1 -p 8080:80 --name c1 busybox
The filter table is:
{{index . "LFilter4"}}
{{index . "SFilter4"}}
Differences from nat mode:
nat mode appended a default-DROP rule for any packets not accepted
by the per-port/protocol rules, nat-unprotected appends a default-ACCEPT
rule. setDefaultForwardRule
80/tcp, setPerPortIptables
doesn't set it up.
The nat table is identical to nat mode.
<details> <summary>nat table</summary>{{index . "LNat4"}}
{{index . "SNat4"}}