Docker and iptables persistence

Dowload our template iptables rules

 wget -O /root/ && chmod +x /root/ 

Create your own iptables unix service

 sudo vi /etc/systemd/system/org.entermediadb-firewall.service
 [Unit] Firewall Config After=docker.service After=nginx.service After=firewalld.service [Service] Type=oneshot ExecStart=/root/ [Install]

Set the enable boolean to have the service be part of your machine's OS boot sequence

 systemctl enable --now org.entermediadb-firewall.service 

*** Tested on CentOS/RHEL 7.6 && iptables v1.4.21 ***