[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Re: domU and NAT


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Jan Kalcic <jandot@xxxxxxxxxxxxxx>
  • Date: Fri, 17 Apr 2009 12:04:19 +0200
  • Delivery-date: Fri, 17 Apr 2009 03:06:31 -0700
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.