iptables

To edit iptables...

$ sudo vi /etc/sysconfig/iptables
$ sudo /etc/init.d/iptables restart

The syntax is fairly complicated,
and so it is not unreasonable to copy-paste-modify existing lines.