Hi Guys, whoever is having issue with iptables installation and configuration task, please try this approach.I have had success with it.I am new to linux and I thought to share with the community. Anyway, this approach has worked for me.
1)install iptables in all three apps( stapp01, stapp02, stapp03)
sudo yum install –y iptables-services
systemctl enable iptables
systemctl enable ip6tables
systemctl start iptables
systemctl start ip6tables
sudo iptables -A INPUT -p tcp --destination-port (in question) -s 172.16.238.14 -j ACCEPT
sudo iptables -A INPUT -p tcp --destination-port (in question) -j DROP
- service iptables save
Please, let me know your thoughts.Thanks.