docker-ce: make docker-ce firewall handling configurable
authorFlorian Eckert <redacted>
Wed, 11 Nov 2020 12:34:39 +0000 (13:34 +0100)
committerFlorian Eckert <redacted>
Thu, 19 Nov 2020 13:20:02 +0000 (14:20 +0100)
commit1af559356829cad1ff0977900f7de459ae50a3a6
tree7482dc1dc3c58f410d821338750878e9246ebeff
parentdc9d9d2202d0b98ce5f5bcc8e1bb41bc439288ed
docker-ce: make docker-ce firewall handling configurable

Openwrt has a own firewall service called fw3, that supports firewall zones.
Docker can bypass the handling of the zone rules in openwrt via custom
tables. These are "always" processed before the openwrt firewall.
Which is prone to errors!

Since not everyone is aware that the firewall of openwrt will
not be passed. And this is a security problem because a mapped port is
visible on all interfaces and so also on the WAN side.
If the firewall handling in docker is switched off, then the port in
fw3 must be explicitly released and it cannot happen that the
port is accidentally exported to the outside world via the interfaces on
the WAN zone.

So all rules for the containers should and so must be made in fw3.

Signed-off-by: Florian Eckert <redacted>
utils/docker-ce/files/dockerd.init
utils/docker-ce/files/etc/config/dockerd
git clone https://git.99rst.org/PROJECT