[Vserver] Re: java socket connections between guests seem to have the host as a source

From: Konstantinos Pachopoulos <kostaspaxos_at_yahoo.gr>
Date: Mon 12 Mar 2007 - 08:55:49 GMT
Message-ID: <20070312085549.37557.qmail@web25503.mail.ukl.yahoo.com>

--- Konstantinos Pachopoulos <kostaspaxos@yahoo.gr>
wrote:

> Hi,
> before reinstalling the host system (the guests have
> remained exactly the same) there was no problem.
> Now,
> if i create a java socket connection from one guest
> to
> another, the guests believe that the source of the
> connection is the host! Do i need to change
> something
> in /etc/vservers/guest-name dir? While creating each
> guest i had used the "hostname" parameter however...
>
> Ideas?
>
>
>
I fixed it. I had to set the prefix to "24" for each
guest (instead the default "32"), although i think i
had done this during the
creation of each template. I also used the following
iptable entries:
-A PREROUTING -s ! 192.168.0.0/255.255.255.0 -p tcp -m
tcp --dport 2049 -j DNAT --to-destination
192.168.1.12:2049
-A POSTROUTING -s 192.168.1.0/255.255.255.0 -d !
192.168.1.0/255.255.255.0 -j SNAT --to-source 192.168.1.5

                
___________________________________________________________
Inbox full of unwanted email? Get leading protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon Mar 12 09:44:02 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 12 Mar 2007 - 09:44:09 GMT by hypermail 2.1.8