Why application security task failed?

Hi @royki @Tej-Singh-Rana @Inderpreet @kodekloud-support3 @akshayyw
I’ve executed the following commands still the task got failed with the error:
“Either firewall rule was not added for Nginx port ‘8099’ or rule was not permanently added on Backup server”

sudo service iptables start

sudo systemctl status iptables

sudo iptables -A INPUT -p tcp --destination 3000 -j DROP

sudo service iptables save

sudo systemctl restart iptables

sudo iptables -L

sudo vi /etc/sysconfig/iptables(TO CHECK THE ENTRIES)

sudo iptables -A INPUT -p tcp --destination 8099 -j ACCEPT

sudo service iptables save

sudo systemctl restart iptables

sudo iptables -L

Why this task got failed with unexpected error?

Try to INSERT rule rather than APPEND, that might solve. (Not sure !!!)