5.5 Configuring iptables
To configure iptables, perform the following:
To ensure that Ambari can communicate with the hosts it deploys to and manages during the setup process, you can temporarily disable iptables.
OS | Command |
RHEL 8 | systemctl disable firewalld service firewalld stop |
Ubuntu 20 | sudo ufw disable sudo iptables -X sudo iptables -t nat -F sudo iptables -t nat -X sudo iptables -t mangle -F sudo iptables -t mangle -X sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT |
After the setup is complete, restart the iptables. However, if the security protocols in your environment do not allow disabling iptables, proceed with iptables enabled as long as all the required ports are open and available.
During the Ambari server setup process, Ambari performs a check to see if iptables are running. If iptables are running, a warning message is shown, prompting you to verify that the necessary ports are open and accessible. Additionally, in the Cluster Install Wizard's Host Confirm step, the warnings are issued for each host where iptables are detected as running.
