GithubHelp home page GithubHelp logo

gdm85 / docker-fw Goto Github PK

View Code? Open in Web Editor NEW
71.0 71.0 2.0 99 KB

docker-fw is a complementary tool for Docker to manage iptables-based custom firewall rules between/towards containers, persistence and two-ways links.

License: GNU General Public License v2.0

Go 99.11% Makefile 0.89%

docker-fw's Issues

Missing commands: save, show

It is proposed to add two extra commands:

  • save (with optional specification of which container to save), that would export all ready-to-run commands (with --from-file)
  • show, that would expose all current iptables rules with docker container names in place of IPv4 addresses

Building docker-fw using build.sh fails

[root@monitor ~]# git clone https://github.com/gdm85/docker-fw.git
Cloning into 'docker-fw'...
remote: Counting objects: 208, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 208 (delta 59), reused 54 (delta 54), pack-reused 140
Receiving objects: 100% (208/208), 69.56 KiB | 0 bytes/s, done.
Resolving deltas: 100% (135/135), done.
[root@monitor ~]# cd docker-fw/
[root@monitor docker-fw]# ./build.sh
package github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar
imports github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar
imports github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar: cannot find package "github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar" in any of:
/usr/lib/golang/src/github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar (from $GOROOT)
/root/goroot/src/github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar (from $GOPATH)
[root@monitor docker-fw]#

Question: firewalls per role

Hi,

This is a question of a higher-level pattern. I understand docker-fw easily gives access to firewall configuration for ip+port+protocol, but what if I have a consul setup together with registrator and all containers are tagged with their respective services/roles? Is there an easy way to bind the real-time health checks of consul and registrator together with docker-fw to automatically add/remove firewall rules when containers are added and removed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.