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: domU and NAT

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: domU and NAT
From: Jan Kalcic <jandot@xxxxxxxxxxxxxx>
Date: Fri, 17 Apr 2009 12:04:19 +0200
Delivery-date: Fri, 17 Apr 2009 03:06:31 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=tdozI6fSOC2lAuWu78OqE3O32nD+dqY4SBUmoNa0OPQ=; b=SIAyz/k2ZFiV5aHvnxtGjcLNgECFRkUfAlvVulfIQk2IFVh209kvWM35pdZszgdyfC TH1YdYov3jdMyRbK2jA+RetGeF4yNVWEPuegvdBI008ENahNDkvw//iwuRxGFyBCvM5o fHrtsSxGZap29RqjzDeqgCnqHUjULuPZYNIGQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=inxO71we/YIqpLUabQMDY4RW8OMjsakRjJ/aoEJR4IdnpTC5+/qGfnxjzit+A1mKV8 RDhuLa7NwyaNGoxhFZ9bEr449E/U4JwuMpNU7xC67qPoHKnbXXWc2aymplsiN8refp6A 4J2R823DE4IklTcY5YyA/aavbZoicp0G6bTQE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49E77F5B.8070907@xxxxxxxxx>
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: <49E77F5B.8070907@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20081227)
Jan Kalcic wrote:
> Hi All,
>
> I managed to configure NAT on dom0 but this does not work properly.
> Outgoing traffic from domU is seen with the original domU ip address
> instead of the dom0 ip address and the requests can't get back to the domU.
>
> ip_forward is enable (1)
>
> Any hints?
>
> Thanks,
> Jan
>
>   

I figured out MASQUERADING was not set.

The following rule needs to be set:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


Thanks,
Jan

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

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