If you did that via an ssh session then try starting a new ssh session, login and check the state of your rules now. When you restart iptables like that it can interrupt existing connections and one of those would be your ssh connection.

CentOS 5 died in March 2017 - migrate NOW!Full time Geek, part time moderator. Use the FAQ Luke

You can't really restart iptables from an ssh connected session as it always has the possibility of stopping the session you're running in. If you want to amend the rules then use the iptables command itself to -A append or -I insert new rules in the correct places.

CentOS 5 died in March 2017 - migrate NOW!Full time Geek, part time moderator. Use the FAQ Luke