[CentOS] how to open a tcp port?

hadi motamedi motamedi24 at gmail.com
Wed Mar 3 11:38:55 UTC 2010


On Wed, Mar 3, 2010 at 11:32 AM, Samuel Contesse <
samuel.contesse at softcomponent.ch> wrote:

> Try /sbin/iptables –L
>
>
> On 03.03.10 12:26, "hadi motamedi" <motamedi24 at gmail.com> wrote:
>
>
>
> On Wed, Mar 3, 2010 at 11:14 AM, Samuel Contesse <
> samuel.contesse at softcomponent.ch> wrote:
>
> Hi,
>
> Assumed that iptables has been disabled during installation,
> /etc/sysconfig/iptables might not be present on your system. Can you print
> iptables running configuration out by using:
>
> iptables –L
>
> Sam
>
>
>
> On 03.03.10 12:05, "hadi motamedi" <motamedi24 at gmail.com> wrote:
>
> Dear All
> On my CentOS , I want to open tcp port 4965 but my server does not contain
> /etc/sysconfig/iptables . Can you please let me know how to open this port ?
> Thank you
> ------------------------------
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
> 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?
>
>
>
> ------------------------------
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
I tried for '/sbin/iptables -L' and please find its output at below :
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20100303/2723c350/attachment.html 


More information about the CentOS mailing list