[CentOS] how to open a tcp port?

Wed Mar 3 12:36:33 UTC 2010
Eero Volotinen <eero.volotinen at iki.fi>

2010/3/3 Steve Walsh <steve at nerdvana.net.au>:
> 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.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

In some (rare) case selinux can also cause problems.

try to disable selinux using setenforce "0"

--
Eero