Day 13: IPtables Installation And Configuration Issue

Hey,

I have been doing this task the 2nd time, have given the correct port and also the LBR IP, but it always says that Apache service on App Server 1 is not reachable from LB host. Am i missing something, or is it a bug?

Here are the commands i used

sudo su
systemctl start iptables && systemctl enable iptables
iptables -A INPUT -p tcp -s --dport -j ACCEPT
sudo iptables -A INPUT -p tcp --dport -j DROP
sudo service iptables save

Repeated the same for all the other app servers.

HI @anirudh_hyphen

After installing, starting, and enabling the iptables
iptables -I INPUT 1 -p tcp --dport <PORT> -s <LBR IP> -j ACCEPT
iptables -A INPUT -p tcp --dport <PORT> -j DROP # Drop all other connections

Once configured, save the config to /etc/sysconfig/iptables:
iptables-save > /etc/sysconfig/iptables

Thank you so much for your help. I completed this task yesterday and turns out for some reason the connections were dropping everytime.