Poking a hole in the CentOS firewall

By andy January 2nd, 2009

With CentOS 5.2 (as ever), use the following to enable a listening tcp port (in this case 8000) to be accessed through the firewall.

sudo /sbin/iptables -A INPUT -p tcp –dport 8000 -j ACCEPT
sudo /sbin/service iptables save
sudo /sbin/iptables -F

This entry was posted on Friday, January 2nd, 2009 at 1:05 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply