Hi
I know this has been discussed almost to death recently, but I'm still
having some troubles getting a working config..
What I am trying to achieve is to get 127.0.0.1 to map to a private
loopback ip such as 127.0.1.1 - I'm struggling to find the correct
config for this under vserver 2.2.0.6
I guess this requires setting the first interface to 127.0.1.1, ie
0/dev = lo
0/ip = 127.0.1.1
0/prefix = 32
0/name = lo
then my real net interface
1/dev = eth0
1/ip = 1.2.3.4
1/prefix = 32
However, this causes lots of networking problems in the guest apparently
because my networking doesn't fire up anything like I expect...
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.255.255.1 * 255.255.255.255 UH 2 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 10.255.255.1 0.0.0.0 UG 2 0 0 eth0
Host and guest are both gentoo. Not sure how the networking is supposed
to work under this scenario though?
Can someone please assist with the config here (and explain how to setup
networking with multiple devices...)
For reference previously I swapped the interfaces above 0 <=> 1 and
simply updated all my application configs to explicitly use a network
address of 127.0.x.y - however, the above should require less
customisation of each vhost if I can just get it to work... I'm using
the grsecurity patch so I am stuck on 2.2 for now
Thanks
Ed W
Received on Thu Mar 27 12:17:09 2008