I dont have a screenshot of the original question.
It was along the lines off I need to install and configure iptables to only allow the LBR server access access to the httpd port (5002) on all the app servers. I needed to make sure the config is saved.
I thought i had done this but the end of the task check advises this was not saved permanently to App Server 1
From the command history you can see I added the relevant rules to app server 1 and ran the command to permanently save the rule set.
Will be great if someone can advise where I have gone wrong
It would be good if this was covered off in the iptables lecture on the Linux course, I got confused between ‘service iptables save’ and ‘iptables-save’.
I am now more confused . So far I knew sudo iptables save and sudo iptables-save > /etc/sysconfig/iptables. I have posted a similar question in the below link. It will be great if you can explain the differences.
Edit: Actually I have seen if I have enabled the iptables to start with then iptables-save works