BackupPC-users

Re: [BackupPC-users] localhost translated as 127.0.0.1 vs. ::1 messing up permissions

2009-12-07 12:23:57
Subject: Re: [BackupPC-users] localhost translated as 127.0.0.1 vs. ::1 messing up permissions
From: "Michael Stowe" <mstowe AT chicago.us.mensa DOT org>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 7 Dec 2009 11:21:16 -0600
::1 is the IPv6 loopback address

> My /etc/httpd/conf.d/BackupPC.conf file (which is the default in
> Fedora 12) restricts access to localhost (which makes sense) as
> follows:
>    allow from 127.0.0.1
>
> My /etc/hosts file has these (Fedora default) lines at the top:
>    127.0.0.1   localhost localhost.localdomain localhost4
> localhost4.localdomain4 mycomputer.mydomain
>    ::1         localhost localhost.localdomain localhost6
> localhost6.localdomain6 mycomputer.mydomain
>
> When I access the web interface from my Console, using either
> http://127.0.0.1/BackupPC or http://localhost/BackupPC, everything
> works (as expected) and the httpd access_log records the access as coming
> from 127.0.0.1
>
> However when I access the web interface via an ssh tunnel using
> -L 8145:localhost:80 and http://127.0.0.1:8145/BackupPC, somehow the
> address gets translated to ::1 (as shown by the httpd error_log
> records) which causes access to be denied.
>
> Now I know I can fix this either by removing the ::1 line from the
> hosts file or by adding ::1 to the /etc/httpd/conf.d/BackupPC.conf
> file.
>
> But I want to understand first why in an ssh tunnel the 127.0.0.1:8145
> address would be translated to ::1 rather than to 127.0.0.1


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/