Debian / Ubuntu using System V init scripts:

  • cp /opt/enswitch/current/etc/init.d/debian/iptables /etc/init.d/iptables
  • # Edit /etc/init.d/iptables and add a line allowing traffic from all other machines in the cluster.
  • update-rc.d iptables start 95 2 3 4 5 .
  • service iptables start

Debian / Ubuntu using Systemd:

  • cp /opt/enswitch/current/etc/init.d/debian/iptables /etc/init.d/iptables
  • # Edit /etc/init.d/iptables and add a line allowing traffic from all other machines in the cluster.
  • update-rc.d iptables remove
  • cp /opt/enswitch/current/etc/systemd/debian/iptables.service /etc/systemd/system/iptables.service
  • systemctl daemon-reload
  • systemctl enable iptables.service
  • systemctl start iptables.service

Devuan:

  • cp /opt/enswitch/current/etc/init.d/devuan/iptables /etc/init.d/iptables
  • # Edit /etc/init.d/iptables and add a line allowing traffic from all other machines in the cluster.
  • update-rc.d iptables defaults
  • service iptables start

CentOS 7:

  • systemctl stop firewalld
  • systemctl mask firewalld
  • yum install -y iptables-services
  • cp /opt/enswitch/current/install/etc/sysconfig/iptables /etc/sysconfig/iptables
  • # Edit /etc/sysconfig/iptables and add a line allowing traffic from all other machines in the cluster.
  • systemctl enable iptables.service
  • systemctl start iptables.service

CentOS 8 and later or Rocky Linux:

  • systemctl stop firewalld
  • systemctl mask firewalld
  • dnf install -y iptables-services
  • cp /opt/enswitch/current/install/etc/sysconfig/iptables /etc/sysconfig/iptables
  • # Edit /etc/sysconfig/iptables and add a line allowing traffic from all other machines in the cluster.
  • systemctl enable iptables.service
  • systemctl start iptables.service

Others:

  • cp /opt/enswitch/current/install/etc/sysconfig/iptables /etc/sysconfig/iptables
  • # Edit /etc/sysconfig/iptables and add a line allowing traffic from all other machines in the cluster.
  • chkconfig iptables on
  • service iptables restart