::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 [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
