8000 Enable custom firewall rules · Issue #33567 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Enable custom firewall rules #33567
Open
Open
@opensource21

Description

@opensource21

If you run docker with default settings --iptables=true makes it nearly impossible to make custom security settings. I must accept that each container can call everything outside or nothing (--icc=false).

I would suppose to create more chains to allow special options:

  • PRE_DOCKER_IN which is registered before the DOCKER and DOCKERISOLATION-chain and used registered at FORWARD -o docker0
  • PRE_DOCKER_OUT which is registered before the DOCKER and DOCKERISOLATION-chain and used registered at FORWARD -i docker0
  • POST_DOCKER_IN which is registered after the DOCKER and DOCKERISOLATION-chain and used registered at FORWARD -o docker0
  • POST_DOCKER_OUT which is registered after the DOCKER and DOCKERISOLATION-chain and used registered at FORWARD -i docker0

after that chains you can add ACCEPT all or DROP all depending on --icc=true|false .

The logic must be if PRE_DOCKER_* oder POST_DOCKER_* exists it will not be created. Docker will not put any rules to the chains. So a normal admin can use them to have full control over the forward chain.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0