Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Promise 378 controller
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
Determine what service listening on port

Determine what service listening on port

2007-07-14       - By Steve Phillips

 Back
Reply:     1     2     3     4     5     6     7  

Romeo Theriault wrote:
> The -sV option on nmap would give you service version information. You
> might
> also want to try connecting to the ports with telnet to see what they might
> show.

I find "lsof | grep <port>" tends to use (obviously without < and > )
but usually takes a little interpretation (i.e - look for UDP: <port>,
not the other random things that will show up in such a generalised
grep), lsof will show the process that has the port open, past that, you
can trace back PIDs and PPID's to find the process parent - as is
usually needed when dealing with java applications etc.

trying to use 'telnet' to connect to a UDP port however will be rather
fruitless, as was the "LISTEN" suggestion (UDP services show as "Idle"
not LISTENING)

good luck :-)

--
Steve.

>
> On 7/13/07, joseph tacuyan <joseph.mailboxlist@(protected)> wrote:
>>
>> how about nmapping it?
>>
>> On 7/13/07, redhat@(protected) <redhat@(protected)> wrote:
>> >
>> > I have a RHEL ES3 server that has three listening udp ports open.  I'm
>> > having a hard time trying to determine what service opened them up.  
>> The
>> > ports are udp 1020,1022,1023.  I have tried to following: "netstat
>> -lp",
>> > the PID/Program name column just shows a -,  "fuser -n udp 1020",
>> > nothing returned, lsof -i :1020. nothing returned.  I have shut down a
>> > few services in an attempt to discover who opened the ports, but no
>> > luck.  Anything I may have forgotten?
>> >
>> > Thanks
>> >
>> > --
>> > redhat-list mailing list
>> > unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
>> > https://www.redhat.com/mailman/listinfo/redhat-list
>> >
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/redhat-list
>>

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list