Docker and IPtables Firewall Merger
Posted in Operating Systems, Linux, Red Hat, Network, Firewall, Tools, Tips, CentOS, IPTables on Friday, August 10, 2018 by cam
The problem: Modifying firewall rules on a host that runs Docker or Rancher (cattle) causes the docker-bridges and rancher NAT rules to be blown away, causing all your containers networking to break.
The solution: Modify /etc/sysconfig/iptables as normal and instead of running iptables-restore /etc/sysconfig/iptables run as root: dockerFirewallMerge.py
I’d appreciate some constructive feedback! https://github.com/c … /DockerFirewallMerge