Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2005 12:03:49 +0100
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        Grant Cooper <gcooper@mhc.ab.ca>
Cc:        questions@FreeBSD.org
Subject:   sockstat -4 not showing all open ports for apache2
Message-ID:  <20050221110349.GD33760@goofy.cultdeadsheep.org>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050221110349.GD33760>