[CentOS] how to open a tcp port?

Steve Walsh steve at nerdvana.net.au
Wed Mar 3 12:36:09 UTC 2010


On 03/03/2010 10:26 PM, hadi motamedi wrote:
>
> I issued 'iptables -L' but it is returning just the followings :
> 'Usage: /etc/rc.d/init.d/iptables 
> {start|stop|restart|condrestart|status|panic|save}'
> Can you please let me know why?
Change directory out of /etc/init.d and into your homedirectory

As Eero has already told you, if iptables is not running, then it cannot 
be blocking ports. Use netstat to see what ports are listening on what 
IP's, and configure your application appropriately.


More information about the CentOS mailing list