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

Re: [Xen-users] IP blocking

To: shacky <shacky83@xxxxxxxxx>
Subject: Re: [Xen-users] IP blocking
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Mon, 6 Aug 2007 13:58:46 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 06 Aug 2007 05:56:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <7fedbc910708060518s510357cdx7e3be43159616815@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <7fedbc910708060518s510357cdx7e3be43159616815@xxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Mon, Aug 06, 2007 at 02:18:20PM +0200, shacky wrote:
> Hi.
> 
> How I can assing a given IP address to a given domU and force the user
> of that domU to use that IP address and not all other?
> I don't want the user to change the IP address of his virtual machine
> in /etc/network/interfaces with one ore more IP addresses which are
> not assigned to him.

In the dom0 make sure the kernel has

   net.bridge.bridge-nf-call-iptables = 1

This ensures that all traffic to/from the guest passes through the iptables
rules in Dom0. You can then filter traffic from individual vifN.M interfaces
associated with the guest to make sure its only sending data with the valid
predefined IP address and MAC address you gave it.

> In addition I don't want the user to create more virtual interface
> (eth0:x) than he is allowed to use (I allow each domU to have only two
> IP addresses).

There's no need to worry about restrictions on creating eth0:x interfaces
if you are already filtering based on the source IP address.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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

<Prev in Thread] Current Thread [Next in Thread>