Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 14055

Summary: No route added for lo interface
Product: Gentoo Linux Reporter: Ryan Koski <ryan>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.4_rc2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ryan Koski 2003-01-16 13:28:07 UTC
After having trouble getting the default swat setup to work, as well as reading 
several postings on the forums about not being able to connect for cups 
configuration, etc., I realized the problem:  No route is being added for 127.0.0.0/8 
to use the lo interface.  Therefore, when connecting to services on 127.0.0.1, the 
source IP is seen as the IP of a real NIC (typically eth0).  Anything configured to 
only allow from 127.0.0.1 is then blocked (like swat, cups, etc.). 
 
The easy solution (to me, anyway), is to add a line such as: 
 
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 gw 127.0.0.1 dev lo 
 
right after the /sbin/ifconfig line in start{} in /etc/init.d/net.lo.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 18:06:13 UTC
Added to CVS, should be in baselayout-1.8.6.3, thanks.