From owner-freebsd-questions@FreeBSD.ORG Mon Feb 21 11:03:56 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BCF116A4CE for ; Mon, 21 Feb 2005 11:03:56 +0000 (GMT) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 1185B43D39 for ; Mon, 21 Feb 2005 11:03:54 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 34117 invoked by uid 1000); 21 Feb 2005 12:03:49 +0100 Date: Mon, 21 Feb 2005 12:03:49 +0100 From: Clement Laforet To: Grant Cooper Message-ID: <20050221110349.GD33760@goofy.cultdeadsheep.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ncSAzJYg3Aa9+CRW" Content-Disposition: inline User-Agent: Mutt/1.5.6i cc: questions@FreeBSD.org Subject: sockstat -4 not showing all open ports for apache2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: 1108606981.00238079.1108593603@10.7.7.3 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 11:03:56 -0000 --ncSAzJYg3Aa9+CRW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >I just installed apache 2 and was trying to see if port 80 was open by doi= ng > a sockstat -4 but I couldn't see the port so I thought it didn't install > right. So I did a sockstat -6 and noticed port 80 is showing up for IPv6 > sockets. > Is this a default feature for Apache 2 on freebsd. Per default apache 2.x ports use v4 mapped adresses, in other words, ipv4 connections are handled by ipv6 sockets. For more information: http://www.apache.org/~trawick/v4mapped.html On FreeBSD 5-STABLE: [clement@donald|(501)| ~]$ sockstat -4 USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS = =20 www httpd 46980 3 tcp46 *:80 *:* www httpd 46979 3 tcp46 *:80 *:* www httpd 46975 3 tcp46 *:80 *:* www httpd 46973 3 tcp46 *:80 *:* www httpd 46972 3 tcp46 *:80 *:* www httpd 46971 3 tcp46 *:80 *:* www httpd 46970 3 tcp46 *:80 *:* www httpd 46969 3 tcp46 *:80 *:* root httpd 46968 3 tcp46 *:80 *:* clem --ncSAzJYg3Aa9+CRW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCGcAVsRhfjwcjuh0RAsRsAJsE7GdmPucmoXMtVP/nGrHOUbPYqgCfXRxD aWZsP0onhjYSBL5gn29ktXA= =33YH -----END PGP SIGNATURE----- --ncSAzJYg3Aa9+CRW--