Re: netstat output
On Mon, Jun 10, 2002 at 01:17:02PM -0400, James wrote:
> I use: netstat -vat | grep LISTEN
>
> That will tell you everything that is really listening on your server.
>
Not really, IIRC it will not show you udp servers.
You might want to check Tiger's test: check_listeningprocs
Code snippet:
$NETSTAT -ptuan | $GREP -v STREAM |
while read type x y local remote listen proc
do
...
done
type: udp or tcp
proc: includes pid and listening process name
local: includes socket number and address
Regards
Javi
--
To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: