[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#311968: marked as done (apache2-common: can't be accessed from ipv4 clients in default configuration)



Your message dated Sun, 5 Jun 2005 03:32:07 +1000 (EST)
with message-id <26863.203.49.196.168.1117906327.squirrel@mail.0c3.net>
and subject line Bug#311968: I'm sorry a problem of my ISP
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 4 Jun 2005 14:08:37 +0000
>From edwin_gurde@bluebottle.com Sat Jun 04 07:08:37 2005
Return-path: <edwin_gurde@bluebottle.com>
Received: from (localhost.localdomain) [86.125.50.61] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DeZKG-0004H6-00; Sat, 04 Jun 2005 07:08:36 -0700
Received: from edwin by localhost.localdomain with local (Exim 4.44)
	id 1DeZJi-0001rH-R4
	for submit@bugs.debian.org; Sat, 04 Jun 2005 17:08:02 +0300
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Torok Edwin <edwin_gurde@bluebottle.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apache2-common: can't be accessed from ipv4 clients in default configuration
X-Mailer: reportbug 3.8
Date: Sat, 04 Jun 2005 17:08:02 +0300
Message-Id: <[🔎] E1DeZJi-0001rH-R4@localhost.localdomain>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: apache2-common
Severity: important
Tags: patch

    If I run apache2 using it's default config, it binds to the ipv6 address, even though 
I haven't set up an ipv6 connection (sit0 is down, only eth0, ppp0, and lo is up). 
    Thus a client who knows only ipv4 (i.e. a windows user), cannot connect to my server.
A possible fix to this problem is, that by default the file ports.conf should contain this:
    Listen 0.0.0.0:80
    However I don't know what effect will this have on IPV6 connections. But given the fact that 
most often people will use ipv4 addresses on their servers, or at home, I think that it would be
best to make the default configuration to bind to ipv4, and if somebody wishes to use ipv6
he'll just have to change the config file. Of course this opinion could be wrong.
    The best in my opinion would be if it would accept connections on both ipv4 and ipv6,
but that's not happening in the default config.
    In order for it to be accessed from ipv4, the postinstall script should be changed like this
Instead of: echo "Listen 80" >> /etc/apache2/ports.conf
Should be:  echo "Listen 0.0.0.0:80" >> /etc/apache2/ports.conf
    
    So here is the patch file:
----------------BEGIN PATCH--------------------
--- apache2-common.postinst	2005-06-04 17:02:23.919988360 +0300
+++ ../../fix/apache2-2.0.54/debian/apache2-common.postinst	2005-06-04 17:04:06.111452896 +0300
@@ -17,7 +17,7 @@
 	NO_PORT_80=`$NETSTAT -lnt | awk '{print $4}' | grep ':80$'` || true
 	if [ -n "$NO_AF_INET" -o -n "$NO_PORT_80" ]; then
 		echo "NO_START=1" >> /etc/default/apache2
-		echo "Listen 80" >> /etc/apache2/ports.conf
+		echo "Listen 0.0.0.0:80" >> /etc/apache2/ports.conf
 		if [ -n "$NO_AF_INET" ]; then
 			echo "netstat is unable to query the state of your listening TCP ports.  This could be because you don't have TCP support in your kernel (unlikely), or because you do not have the /proc filesystem mounted.  To be on the safe side, we're assuming that port 80 is in use."
 		fi

----------------CUT HERE-----------------------
    
-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

---------------------------------------
Received: (at 311968-done) by bugs.debian.org; 4 Jun 2005 17:32:38 +0000
>From adconrad@0c3.net Sat Jun 04 10:32:38 2005
Return-path: <adconrad@0c3.net>
Received: from loki.0c3.net [69.0.240.48] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DecVi-0006Z3-00; Sat, 04 Jun 2005 10:32:38 -0700
Received: from localhost
	([127.0.0.1] helo=mail.0c3.net ident=www-data)
	by loki.0c3.net with esmtp (Exim 4.34)
	id 1DecVD-0000w5-30
	for 311968-done@bugs.debian.org; Sat, 04 Jun 2005 11:32:07 -0600
Received: from 203.49.196.168
        (SquirrelMail authenticated user adconrad)
        by mail.0c3.net with HTTP;
        Sun, 5 Jun 2005 03:32:07 +1000 (EST)
Message-ID: <26863.203.49.196.168.1117906327.squirrel@mail.0c3.net>
In-Reply-To: <[🔎] 42A1DB28.9090803@bluebottle.com>
References: <[🔎] 42A1DB28.9090803@bluebottle.com>
Date: Sun, 5 Jun 2005 03:32:07 +1000 (EST)
Subject: Re: Bug#311968: I'm sorry a problem of my ISP
From: "Adam Conrad" <adconrad@0c3.net>
To: 311968-done@bugs.debian.org
Reply-To: adconrad@0c3.net
User-Agent: SquirrelMail/1.5.1 [CVS]
MIME-Version: 1.0
Content-Type: text/plain;charset=UTF-8
Content-Transfer-Encoding: 8bit
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Mail-From: adconrad@0c3.net
X-SA-Exim-Scanned: No (on loki.0c3.net); SAEximRunCond expanded to false
Delivered-To: 311968-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_01,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Torok Edwin wrote:
>
> It seems it all was a problem with my ISP.

Closing, then.

... Adam




Reply to: