1753741 Members
4089 Online
108799 Solutions
New Discussion

Re: Port listening

 
kunjuttan
Super Advisor

Port listening

Hi All,

 

        How to make a port listening to particular services.

6 REPLIES 6
Naj
Valued Contributor

Re: Port listening

Hi,

You may list all port by #netstat -a.
Could you please be more specific, what port are you looking for ..

____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Torsten.
Acclaimed Contributor

Re: Port listening

A specific appilication (daemon) is listening to a specific port.

 

This daemon has to be run and opened this port.

 

For many applications this is made using inetd.

 

To check what ports are already "open", consider to use lsof.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
kunjuttan
Super Advisor

Re: Port listening

hi,

 thanks for the reply.say if i want to make a port listen to a telnet service,wht shuld i do?

g3jza
Esteemed Contributor

Re: Port listening

You need to uncomment the telnet line in /etc/inetd.conf:

#telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd

But I'm curious why whould you want to do that? To remotely login to the server, you should use SSH instead of telnet, because of security reasons.

After you uncomment that line, run #inetd -c
to reload inetd
g3jza
Esteemed Contributor

Re: Port listening

by uncommenting I mean remove the '#' mark from the line:
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd
Torsten.
Acclaimed Contributor

Re: Port listening

Could you please explain what you *really* want to do???

 

Why moving telnet away from the default port???


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!