Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

A wrapper on top of Iptables to manage rules to block docker.

License

Notifications You must be signed in to change notification settings

albertogviana/docker-firewall

Repository files navigation

docker-firewall Build Status Go Report Card

A wrapper on top of Iptables to manage rules to block docker.

Configuration

To use docker-firewall you need to create the folder /etc/docker-firewall, and create the file config.yml. There is a sample confguration file on example-config.yml.

It is possible to allow access from:

  • interface such as docker0 and docker_gwbridge
- interface:
    - docker0
    - docker_gwbridge
  • based on port
- port: 5601
  • based on IP and port
- allow:
    - 192.168.1.15
    - 192.168.2.15
    - 192.168.3.15
    - 192.168.4.15
    port: 3000
  • based on IP, protocol and port
- allow:
    - 10.0.1.15
    - 10.1.0.25
  protocol: tcp
  port: 9100

TODO

  • Automate release process
  • Validate config file and output if there is errors.
  • Allow IP range

About

A wrapper on top of Iptables to manage rules to block docker.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published