Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14055 - No route added for lo interface
Summary: No route added for lo interface
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-16 13:28 UTC by Ryan Koski
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.