Operating System - HP-UX
1833053 Members
2586 Online
110049 Solutions
New Discussion

How to detect opened TCP/IP ports in HP-UX

 
yc_2
Regular Advisor

How to detect opened TCP/IP ports in HP-UX

Hi,

Is there a way to detect opened TCP/IP ports in HP-UX besides using a scanner?

Any pointer is appreciated.
4 REPLIES 4
Joseph Loo
Honored Contributor

Re: How to detect opened TCP/IP ports in HP-UX

hi,

if u mean ports that are listening, u may do this:

# netstat -an|grep tcp|grep LISTEN|sort

regards.
what you do not see does not mean you should not believe
yc_2
Regular Advisor

Re: How to detect opened TCP/IP ports in HP-UX

It works on tcp ports.

What about capturing udp ports that listening?
Joseph Loo
Honored Contributor

Re: How to detect opened TCP/IP ports in HP-UX

netstat -an|grep udp

regards.
what you do not see does not mean you should not believe
Biswajit Tripathy
Honored Contributor

Re: How to detect opened TCP/IP ports in HP-UX

While the previous posts tell you how to findout which
ports are open, there is an interesting fact that you
should know.

If you are running HP-UX IPFilter firewall to block
certain ports, those ports will still be shown in LISTEN
state by "netstat -an" command even if they are
blocked in a sense that no remote system would be
able to access them. The reason being, IPFilter
firewall operates at a point much lower in the
networking stack than where "netstat -an" gets it's
information from.

- Biswajit
:-)