docker-fw is a complementary tool for Docker to manage iptables-based custom firewall rules between/towards containers, persistence and two-ways links.
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?
I'll admit that my knowledge of how iptables works is a bit low, but essentially what I'd like to do is accept connections on a new port for a docker container that was not started with either -P or -p. Is it possible to use docker-fw to do that, and if so, how?