Bug#690232: apache2: Apache2 listens on tcp6 only
Package: apache2.2-common
Version: 2.2.16-6+squeeze8
Severity: normal
-- Package-specific info:
List of enabled modules from 'apache2 -M':
alias auth_basic authn_file authz_default authz_groupfile
authz_host authz_user autoindex cgi deflate dir env mime
negotiation php5 reqtimeout setenvif status
List of enabled php5 extensions:
mysql mysqli pdo pdo_mysql suhosin
-- System Information:
Debian Release: 6.0.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apache2 depends on:
ii apache2-mpm-prefork 2.2.16-6+squeeze8 Apache HTTP Server -
traditional n
ii apache2.2-common 2.2.16-6+squeeze8 Apache HTTP Server common
files
apache2 recommends no packages.
apache2 suggests no packages.
Versions of packages apache2.2-common depends on:
ii apache2-utils 2.2.16-6+squeeze8 utility programs for
webservers
ii apache2.2-bin 2.2.16-6+squeeze8 Apache HTTP Server common
binary f
ii libmagic1 5.04-5+squeeze2 File type determination
library us
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init
scrip
ii mime-support 3.48-1 MIME files 'mime.types' &
'mailcap
ii perl 5.10.1-17squeeze3 Larry Wall's Practical
Extraction
ii procps 1:3.2.8-9squeeze1 /proc file system utilities
-- no debconf information
after restarting apache2, I see:
# netstat -tanp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
1415/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
7985/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
5908/mysqld
tcp 0 0 10.52.152.164:22 10.52.81.146:49538
ESTABLISHED 1433/0
tcp 0 0 10.52.152.164:22 10.52.81.146:50363
ESTABLISHED 10488/2
tcp 0 0 10.52.152.164:22 10.52.81.146:49909
ESTABLISHED 4229/1
tcp6 0 0 :::80 :::* LISTEN
10525/apache2
tcp6 0 0 :::22 :::* LISTEN
1415/sshd
ports.conf is default:
NameVirtualHost *:80
Listen 80
So I did a
"echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf &&
reboot" with the following result:
# netstat -tanp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
1249/apache2
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
1521/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
1655/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
1489/mysqld
tcp 0 52 10.52.152.164:22 10.52.81.146:50385
ESTABLISHED 1742/0
Reply to: