@Inderpreet Can you please check this ?
@akshayyw I have referred your answer for this task. Let me know if anything missing.
Following are the commands that I have executed for this task :
- yum install iptables-services -y
- systemctl start iptables
- systemctl status iptables → Activated
- systemctl enable iptables
- iptables -A INPUT --p tcp --dport 8083 -s 172.16.238.14 -j ACCEPT
- iptables -A INPUT --p tcp --dport 8083 -j DROP
- service iptables save
Attached here are the snapshots of all three servers (iptables -L).
Also attached curl and telnet command.