Editing iptables on a Centos machine?
Firstly you can check your rules like so –
iptables -L
cd /home/richard
iptables-save > 08-05-2015.rules
vi 08-05-2015.rules
(add your rules)
iptables-restore < 08-05-2015.rules
services iptables save
iptables -L – You should now see your new rules.