From owner-freebsd-net@FreeBSD.ORG Tue May 11 19:42:53 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8101C1065672 for ; Tue, 11 May 2010 19:42:53 +0000 (UTC) (envelope-from barnaclewes@gmail.com) Received: from mail-qy0-f190.google.com (mail-qy0-f190.google.com [209.85.221.190]) by mx1.freebsd.org (Postfix) with ESMTP id 385BC8FC12 for ; Tue, 11 May 2010 19:42:53 +0000 (UTC) Received: by qyk28 with SMTP id 28so161714qyk.27 for ; Tue, 11 May 2010 12:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=noiOVe+MDsqfjEUnPbVIFb818VoM+/O4tRP0Es5mIvE=; b=tra/VS3RGQGHqynHF5yIQmF6/ktRkWxBCgRXJxjDNH0hsvQm8rVeEG6vKZwn+LmtOp t25AgL0ZkpJJdYCdEPl2IWGKnSReITXg4pVH6LJJHrkL+X+0XNQjUeJ4qskjv8yaeRCS MOFYhZq4d+LOA0WHqNB0G4tc/eeCrV7sE0LiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=s20aKrVIJ5EjrmSFSjd/z04NeUu8+WQjXD8mvZrQmqafwi8FiZyEUiY8zekOJCSpp5 UaZqvcmWtFpVIIjjfazpa8IVOEtOLXRARpuZ/GwxPksdxL3/WWHZVVQtIxrPyy9liCHb A1rL2bIunuuGasgEulJXx2v043GqHFBnnaqEg= MIME-Version: 1.0 Received: by 10.224.66.100 with SMTP id m36mr4218880qai.126.1273605602078; Tue, 11 May 2010 12:20:02 -0700 (PDT) Received: by 10.229.25.200 with HTTP; Tue, 11 May 2010 12:20:02 -0700 (PDT) In-Reply-To: <201005111814.o4BIEPfN071211@lava.sentex.ca> References: <201005111814.o4BIEPfN071211@lava.sentex.ca> Date: Tue, 11 May 2010 12:20:02 -0700 Message-ID: From: Wes Peters To: Mike Tancsa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: sockstat / netstat output 8.x vs 7.x X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2010 19:42:53 -0000 The output header is instructive: USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS www httpd 18423 3 tcp4 6 *:80 *:* www httpd 18423 4 tcp4 *:* *:* www httpd 25184 3 tcp4 6 *:80 *:* www httpd 25184 4 tcp4 *:* *:* Same as 7, it's the foreign address. This is normally only useful for connected sockets. On Tue, May 11, 2010 at 11:14 AM, Mike Tancsa wrote: > [trying on freebsd-net since no response on stable] > > I noticed that apache on RELENG_8 and RELENG_7 shows up with output I can= t > seem to understand from sockstat -l and netstat -naW > > On RELENG_7, sockstat -l makes sense to me > .... > www =A0 =A0 =A0httpd =A0 =A0 =A083005 4 =A0tcp4 =A0 *:443 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 *:* > www =A0 =A0 =A0httpd =A0 =A0 =A082217 3 =A0tcp4 =A0 *:80 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0*:* > www =A0 =A0 =A0httpd =A0 =A0 =A082217 4 =A0tcp4 =A0 *:443 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 *:* > www =A0 =A0 =A0httpd =A0 =A0 =A038942 3 =A0tcp4 =A0 *:80 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0*:* > www =A0 =A0 =A0httpd =A0 =A0 =A038942 4 =A0tcp4 =A0 *:443 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 *:* > root =A0 =A0 httpd =A0 =A0 =A01169 =A03 =A0tcp4 =A0 *:80 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0*:* > root =A0 =A0 httpd =A0 =A0 =A01169 =A04 =A0tcp4 =A0 *:443 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 *:* > > > various processes listening on all bound IP addresses on ports 80 and 443= . > > On =A0RELENG_8 however, it shows up with an extra entry (at the end) > > www =A0 =A0 =A0httpd =A0 =A0 =A029005 4 =A0tcp4 =A0 *:* =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 *:* > www =A0 =A0 =A0httpd =A0 =A0 =A029004 3 =A0tcp4 6 *:80 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0*:* > www =A0 =A0 =A0httpd =A0 =A0 =A029004 4 =A0tcp4 =A0 *:* =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 *:* > www =A0 =A0 =A0httpd =A0 =A0 =A029003 3 =A0tcp4 6 *:80 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0*:* > www =A0 =A0 =A0httpd =A0 =A0 =A029003 4 =A0tcp4 =A0 *:* =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 *:* > www =A0 =A0 =A0httpd =A0 =A0 =A066731 3 =A0tcp4 6 *:80 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0*:* > www =A0 =A0 =A0httpd =A0 =A0 =A066731 4 =A0tcp4 =A0 *:* =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 *:* > root =A0 =A0 httpd =A0 =A0 =A072197 3 =A0tcp4 6 *:80 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0*:* > root =A0 =A0 httpd =A0 =A0 =A072197 4 =A0tcp4 =A0 *:* =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 *:* > > > *:80 makes sense to me... process is listening on all IPs for port 80. = =A0What > does *:* mean then ? > > Netstat gives a slightly different version of it > > Active Internet connections (including servers) > Proto Recv-Q Send-Q =A0Local Address =A0 =A0 =A0 =A0 =A0Foreign Address = =A0 =A0 =A0 (state) > tcp4 =A0 =A0 =A0 0 =A0 =A0 =A00 *.1984 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 *.= * =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0LISTEN > tcp4 =A0 =A0 =A0 0 =A0 =A0 =A00 *.* =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0*.* =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CLOSED > tcp46 =A0 =A0 =A00 =A0 =A0 =A00 *.80 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = *.* =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0LISTEN > > state closed ? > > =A0 =A0 =A0 =A0---Mike > > > > -------------------------------------------------------------------- > Mike Tancsa, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0tel +1 519 651 3400 > Sentex Communications, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0mike@sentex.net > Providing Internet since 1994 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0www.= sentex.net > Cambridge, Ontario Canada =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= www.sentex.net/mike > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > --=20 Against stupidity the very gods Themselves contend in vain. Friedrich Schiller