About this list Date view Thread view Subject view Author view Attachment view

From: Oliver Seufer (OS_at_SerNet.DE)
Date: Fri 05 Dec 2003 - 10:31:08 GMT


Hello,

after upgrading to Kernel 2.4.23 and newest VServerpatch (stable 1.0 and 1.1.6)
there is a problem with connections to 127.0.0.1. When you connect to 127.0.0.1
the destination address is set to the vserveraddress, but the source is set
to 127.0.0.1. But the right behaviour would be that the source is also set
to the vserveraddress. I look at the code and the problem is, that the source is
first checked and after the check the destination is that to the vserver-
address.

--- linux-2.4.23/include/net/route.h
+++ linux-2.4.23-vs1.1.6/include/net/route.h
..
..
+ if (src == 0)
+ src = dst == 0x0100007f
+ ? 0x0100007f: ipv4root;
At this moment the destionation is still 127.0.0.1 and so the source is set to
127.0.0.1
..
..
..
+ if (dst == 0x0100007f && !vx_check(0, VX_ADMIN))
+ dst = ipv4root;
+ }
Now the destination is that to the ipv4root address. But the source is already
set to 127.0.0.1

So I think it would be better to check first the destination and then the
source. That will fix the problem.

Best regards

O. Seufer

p. s. Please reply also to my email-address, because I'm not on the list.

-- 
  _              |  Oliver Seufer          |  Tel.: ++49-551-370000-0
 |_     |\ |     |  Service Network GmbH   |  FAX:  ++49-551-370000-9
 ._|ER  | \|ET   |  Bahnhofsallee 1b       |  mailto:OS_at_SerNet.DE
Service Network  |  D-37081 Goettingen     |  http://www.SerNet.DE/


_______________________________________________ Vserver mailing list Vserver_at_list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 05 Dec 2003 - 10:32:38 GMT by hypermail 2.1.3