WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Re: to access 4 Virtual Hosts from a public IP

To: Jason Edgecombe <jason@xxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Re: to access 4 Virtual Hosts from a public IP
From: Tapas Mishra <mightydreams@xxxxxxxxx>
Date: Mon, 12 Apr 2010 04:41:44 +0530
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>, linux-poweredge@xxxxxxxx
Delivery-date: Sun, 11 Apr 2010 16:12:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=sfMtUFYALa6gkVIMkQr09Kx6ddwZhfam7HZMNKsTTAQ=; b=XRp4J79U9KbLtyBozZXnf1G4+DhItzu8A3j6drhHuRDMbrrMSLMajg7+ya6qLMJPD8 ZoPbW7N0y8T0XVmB81/W0K+Lk+ej1r5zzpGaIrR8r46HAF4h7Dhg5X5WbsF9+vDtGLJb P81YMkqEZuBbY30ChZuKNYjLyiC4o6HStQjVM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=lANpCNEbq7ye/pkwUDxA+thLKD5+J48PdR/bjztzMvZ3cWbwfVG201kTuwqCG3eZtE J1fpSnu+dlnRnKJa85etWJ0gUVWSt9k9s4LxkSowQZZlwOqtXixV4Z7rj3Twn7pGGLIb lcEQ9xZkQyRJjuH/2W/06sKEBDfoBV0FJHUOc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BC1DC15.3000206@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <m2pe2d2e5831004092306g78700b63g45c595d54117146b@xxxxxxxxxxxxxx> <4BC08092.7000706@xxxxxxxxxxxxxxxxx> <u2ge2d2e5831004100731o46cd2f98tec9218e704dcf101@xxxxxxxxxxxxxx> <4BC0B34A.8040404@xxxxxxxxxxxxxxxxx> <m2ye2d2e5831004101039ubdea8fdgd5aa6ba430adc82f@xxxxxxxxxxxxxx> <4BC1DC15.3000206@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thank you all It is working.I used IPTABLES.Each of the Virtual Host
is connecting to internet now.


On Sun, Apr 11, 2010 at 7:56 PM, Jason Edgecombe
<jason@xxxxxxxxxxxxxxxxx> wrote:
> Tapas Mishra wrote:
>>
>> On Sat, Apr 10, 2010 at 10:50 PM, Jason Edgecombe
>> <jason@xxxxxxxxxxxxxxxxx> wrote:
>>
>>>
>>> ok, I'm a little confused. Please confirm that I understand this
>>> correctly.
>>>
>>> You have 6 hosts:
>>>
>>
>> Right
>>
>>>
>>>  two physical machines: A( xenhost dom0) & B (non-xen)
>>>
>>
>> Right
>>
>>>
>>>  four xen domU's: a,b,c,d
>>>
>>
>> Right
>>
>>>
>>> You have two physical networks: Net1 (public internet), and Net2 (private
>>> net)
>>>
>>
>> Yes 2 networks
>>
>>>
>>> Xen host A is connected to both Net1 and Net2.
>>>
>>
>> Yes on same interface.
>>
>>>
>>> Host A has a xen bridged
>>>
>>
>> Yes now this is the problem wether bridge is running on it or not I am
>> not sure although
>> brctl show
>> gives an out put bridge name eth2
>> but I am using xen 3.2 and in xen 3.3 and onwards the default name of
>> bridge is same as
>> the ethernet card.
>>
>>
>>>
>>> network with Net2, so that a, b, c, and d are all bridged to Net2.
>>>
>>> Host B is Net2.
>>>
>>
>>
>>>
>>> Is this correct?
>>>
>>
>> Yes
>>
>> Ok by the time you replied I had figured out see if it is right.
>> Dom0 is acting as a router here
>> as this page says
>> dom0 from acting as an IP router: echo 0 > /proc/sys/net/ipv4/ip_forward.
>> So the way I explained ssh is working from behind.
>>
>> Now the thing is I want to go to setup IPTABLES and NAT on Dom0 for
>> the virtual hosts.
>> I am very well aware of IPTABLES but Xen Dom0 is confusing me.
>> I want these virtual hosts to be able to connect to internet as I run
>> apt-get
>> or commands so I will be creating a squid proxy on Dom0 for
>> DomU's to be behind Dom0 is it possible if yes if you can provide me
>> some link that may help me a bit.
>> Xen network wiki page talks some thing about ebtables.
>> http://ebtables.sourceforge.net/br_fw_ia/br_fw_ia.html
>> Now here is I am confused at ebtables and iptables.
>>
>
> You shouldn't need to use ebtables. Iptables should work.
>
> For your situation, you will need "echo 1 > /proc/sys/net/ipv4/ip_forward"
> you should be able to to set up a bridge, but use the private NIC instead of
> the public NIC on dom0., then just follow a NAT tutorial.
>
> Leave the ssh forwarding and apache proxy until last.
>
> Jason
>



-- 
Tapas

+91 8971248477

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Re: to access 4 Virtual Hosts from a public IP, Tapas Mishra <=