Re: dang: how to display the process ass'd with an active port
From: James Wu (admin_at_znode.org)
Date: 02/19/04
- Previous message: Dave: "Re: ISO image for sources"
- Maybe in reply to: Goodleaf, John M: "dang: how to display the process ass'd with an active port"
- Next in thread: Amar Takhar: "Re: dang: how to display the process ass'd with an active port"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 18 Feb 2004 15:31:59 -0800 To: freebsd-newbies@freebsd.org
> From: "Goodleaf, John M" <jgoodlea@fhcrc.org>
> Subject: dang: how to display the process ass'd with an active port
>
> Under 4.9, how can I tell which process is associated with a port? I've
> noticed a few oddball ports open on a machine, and I'd like to know which
> process did that. Seems straightforward and yet I don't know the answer.
As root, do
# sockstat -4l
You should see which processes and ports are listening, such as:
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
garble xpilots 1587 3 udp4 *:15345 *:*
root sendmail 449 4 tcp4 127.0.0.1:25 *:*
root sshd 443 3 tcp4 *:22 *:*
_______________________________________________
freebsd-newbies@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"
- Previous message: Dave: "Re: ISO image for sources"
- Maybe in reply to: Goodleaf, John M: "dang: how to display the process ass'd with an active port"
- Next in thread: Amar Takhar: "Re: dang: how to display the process ass'd with an active port"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: opening ports
... services listening, so it doesn't matter). ... you should make exceptions for
these ports. ... may request a switch to another port (like FTP does). ...
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe".
... (Debian-User) - Re: Starting iptables
... it is not clear that you need a firewall at all. ... just don't open any ports.
... "netstat -putl" will let you find out what listening ports are open. ... mysql
is listening on tcp port 3306. ... (Debian-User) - Re: UPHClean log question
... A quick check to see which ports the computer is listening on is to run ...
> Windows Firewall saying that the application svchost.exe has been blocked ... >
extract from UPHClean might indicating a specific problem that should be ... (microsoft.public.windowsxp.help_and_support) - Re: UDP Ports, closing Win2K Server (No IIS)
... What's listening on UDP 995? ... The worm spreads via email but some
antivirus vendors report ... against using IPSec as a firewall, and blocking just one or
two ports here ... (microsoft.public.inetserver.iis.security) - Re: Win2k Netstat sockets interpretation
... I have deleted "file and print sharing" under "internet connections and disbled most
recognizable "remote access" services under 'services.msc' but ZA detects a few remote access modules
running and gives them permission if select "OK" to the suggested query. ... notice randomly
ports assigned to urls or ip addresss. ... 'netstat' on Win2K provides a view on the
state of the *TDI interface*, ... something appearing as 0.0.0.0 listening means "an outstanding
request to ... (alt.computer.security)