sockstat -4 not showing all open ports for apache2

Clement Laforet sheepkiller at cultdeadsheep.org
Mon Feb 21 11:03:56 GMT 2005


>I just installed apache 2 and was trying to see if port 80 was open by doing
> 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 at donald|(501)| ~]$ sockstat -4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS      
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050221/0c0c05a1/attachment.bin


More information about the freebsd-questions mailing list