Re: [CentOS] how to open a tcp port?

2010-03-05 Thread hadi motamedi
The lsof output shows a program named iptrans is listening on 4965. Try to find the program using 'locate iptrans' on the machine that has it. Then use 'rpm -q --whatprovides pathname' to see what rpm package it was installed from. If it The 'locate iptrans' shows difference between

[CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
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@centos.org

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Samuel Contesse
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 motamed...@gmail.com wrote: Dear All On my CentOS , I

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Eero Volotinen
2010/3/3 Samuel Contesse samuel.conte...@softcomponent.ch: 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 if iptables is not enabled,

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
On Wed, Mar 3, 2010 at 11:14 AM, Samuel Contesse samuel.conte...@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

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
On Wed, Mar 3, 2010 at 11:20 AM, Eero Volotinen eero.voloti...@iki.fiwrote: 2010/3/3 Samuel Contesse samuel.conte...@softcomponent.ch: Hi, Assumed that iptables has been disabled during installation, /etc/sysconfig/iptables might not be present on your system. Can you print iptables

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
On Wed, Mar 3, 2010 at 11:32 AM, Samuel Contesse samuel.conte...@softcomponent.ch wrote: Try /sbin/iptables –L On 03.03.10 12:26, hadi motamedi motamed...@gmail.com wrote: On Wed, Mar 3, 2010 at 11:14 AM, Samuel Contesse samuel.conte...@softcomponent.ch wrote: Hi, Assumed that

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Eero Volotinen
2010/3/3 hadi motamedi motamed...@gmail.com: On Wed, Mar 3, 2010 at 11:32 AM, Samuel Contesse samuel.conte...@softcomponent.ch wrote: Try /sbin/iptables –L On 03.03.10 12:26, hadi motamedi motamed...@gmail.com wrote: On Wed, Mar 3, 2010 at 11:14 AM, Samuel Contesse

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
All ports are open, but you really need some service to listen that port. -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Thank you . So why 'telnet 172.16.17.132 4965' cannot get through ?

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Eero Volotinen
2010/3/3 hadi motamedi motamed...@gmail.com: All ports are open, but you really need some service to listen that port. -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Thank you . So why

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Spook ZA
On 3 March 2010 13:46, hadi motamedi motamed...@gmail.com wrote: All ports are open, but you really need some service to listen that port. -- Eero ___ Thank you . So why 'telnet 172.16.17.132 4965' cannot get through ? As Eero said, you need

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
.. you just can not connect to empty ports. You need some service/daemon/program to listen that port first. -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Thank you . I got the point . So it

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
As Eero said, you need to make sure something is listening on that port. Try: netstat -ant and look for: Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 0.0.0.0:4965

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Rajagopal Swaminathan
Greetings, On Wed, Mar 3, 2010 at 5:51 PM, hadi motamedi motamed...@gmail.com wrote: # netstat -ant |grep 4965 tcp    0  0 0.0.0.0:4965    0.0.0.0:*   LISTEN # netstat -anp |grep 4965 tcp    0  0 0.0.0.0:4965    0.0.0.0:* LISTEN  1090/iptrans

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Steve Walsh
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

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Eero Volotinen
2010/3/3 Steve Walsh st...@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

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
Hati, lets see, you have machine 1 and machine 2 let us say you are sitting on machine 1 you are trying to telnet into machine 2 to port 4965 First sit on machine 2 and do telnet localhost 4965 Are you able to? If yes, then telnet machine 2 IP 4965 If succesful try telnet from machine

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Benjamin Donnachie
On 3 Mar 2010, at 12:21, hadi motamedi motamed...@gmail.com wrote: How can I distinguish which package is missing from my CentOS server What are you trying to achieve? Ben ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
What are you trying to achieve? Ben ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos I do not want to re-install the OS with all of the packages selected from the installation media . I am seeking if

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Rajagopal Swaminathan
Greetings, On Wed, Mar 3, 2010 at 6:10 PM, hadi motamedi motamed...@gmail.com wrote: But on my machine#1 console (its i...@172.16.17.132) , the following command cannot get through : #telnet 172.16.17.132 4965 is telnetd installed? is the telnet deamon running on machine #1? Regards,

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Rajagopal Swaminathan
Greetings, On Wed, Mar 3, 2010 at 6:20 PM, Rajagopal Swaminathan raju.rajs...@gmail.com wrote: Greetings, On Wed, Mar 3, 2010 at 6:10 PM, hadi motamedi motamed...@gmail.com wrote: is telnetd installed? # yum install telnet-server telnet is the telnet deamon running on machine #1?

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Michel van Deventer
Hi, Greetings, On Wed, Mar 3, 2010 at 6:20 PM, Rajagopal Swaminathan raju.rajs...@gmail.com wrote: Greetings, On Wed, Mar 3, 2010 at 6:10 PM, hadi motamedi motamed...@gmail.com wrote: is telnetd installed? # yum install telnet-server telnet is the telnet deamon running on machine

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread hadi motamedi
is telnetd installed? Yes , it is (as the telnet to ip address on both machines can get through). is the telnet deamon running on machine #1? chkconfig telnet on Yes , it is . read as disable = yes. service xinetd restart I tried to restart the daemon , but still telnet to port 4965

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Benjamin Donnachie
On 3 Mar 2010, at 12:49, hadi motamedi motamed...@gmail.com wrote: I do not want to re-install the OS with all of the packages selected from the installation media . I understand that. What do you want to achieve out of this whole process? What service do you expect to interact with over

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Rajagopal Swaminathan
Greetings, On Wed, Mar 3, 2010 at 6:35 PM, Michel van Deventer mic...@van.deventer.cx wrote: Hi, Why are you telling him to install a telnetd ?? He's trying to connect to a port using telnet (client) to see if a server is listening on it. duh.. I missed it.. sorry... /me tired I guess

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Matt Iavarone
On Wed, Mar 3, 2010 at 6:06 AM, hadi motamedi motamed...@gmail.com wrote: is telnetd installed? Yes , it is (as the telnet to ip address on both machines can get through). is the telnet deamon running on machine #1? chkconfig telnet on Yes , it is . read as disable = yes. service

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Les Mikesell
hadi motamedi wrote: Thank you . How can I distinguish which package is missing from my CentOS server and try to just add it (rather than trying for a fresh CentOS re-installation) ? On another machine similar to mine , the output is as : # netstat -ant |grep 4965 tcp0 0

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread m . roth
hadi motamedi wrote: Thank you . How can I distinguish which package is missing from my CentOS server and try to just add it (rather than trying for a fresh CentOS re-installation) ? On another machine similar to mine , the output is as : snip The lsof output shows a program named iptrans

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Ross Walker
On Mar 3, 2010, at 7:49 AM, hadi motamedi motamed...@gmail.com wrote: What are you trying to achieve? Ben ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos I do not want to re-install the OS with all of the

Re: [CentOS] how to open a tcp port?

2010-03-03 Thread Stephen Harris
On Wed, Mar 03, 2010 at 07:48:41AM -0600, Les Mikesell wrote: the program using 'locate iptrans' on the machine that has it. Then use 'rpm -q --whatprovides pathname' to see what rpm package it was installed from. If it Or simpler: rpm -qf pathname packagename' (and perhaps some