To install aiWARE with RHEL, you need to use iptables to open ports for the aiWARE controller port 9000 and to install the NFS server.
Steps
- In the terminal, run the following commands to install iptables and enable the service to run automatically:
sudo yum install iptables-services
systemctl enable iptables
- In the terminal, type the following:
iptables -A INPUT -p tcp -m tcp --dport 8000 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9000 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 2049 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 5000 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9090 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9091 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9093 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9097 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9001 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9100 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9580 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9111 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 9580 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 8001 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 8081 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 53 -m state --state NEW -j ACCEPT
iptables -A INPUT -p udp -m udp --dport 53 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 5000:5099 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 5000:5199 -m state --state NEW -j ACCEPT
cp /etc/sysconfig/iptables /etc/sysconfig/iptables-terraform-save
iptables-save >/etc/sysconfig/iptables
restorecon -Rv /etc/sysconfig/iptables
systemctl restart iptables
- To install the NFS server, type the following command on RHEL:
sudo yum install nfs-utils
systemctl enable nfs-server
- To add the directory /opt/aiware/nfs as a share for NFS, type the following command using the IP CIDR address of the aiWARE instance (in this example,
10.1.0.0/24).
echo "/opt/aiware/nfs 10.1.0.0/24(rw,no_root_squash,insecure)" > /etc/exports
systemctl restart nfs-server