I have completed this “Application Security” task correctly according to me.
Have added the following rules -
iptables -A INPUT -p tcp --dport 8091 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 5000 -m conntrack --ctstate NEW -j REJECT
and then executed service iptables save as well as iptables-save to save these permanently.
But i received “Failure” with following mentioned
- Either firewall rule was not added for Nginx port (8091) or rule was not permanently added on Backup server
Please check and let me know if i have done correctly or something missing.