On machines running Debian or Ubuntu:
- 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
CentOS or Rocky Linux:
- systemctl stop firewalld
- systemctl mask firewalld
- dnf install -y iptables-services
If the file /etc/sysconfig/iptables exists, then edit it using /opt/enswitch/install/etc/sysconfig/iptables as a guideline. Otherwise do:
- ln -s /opt/enswitch/install/etc/sysconfig/iptables /etc/sysconfig/iptables
Edit /etc/sysconfig/iptables and add a line allowing traffic from all other machines in the cluster, then do:
- systemctl enable iptables.service
- systemctl start iptables.service
On machines running Redhat Enterprise or Fedora:
- 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