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

[Xen-users] Problem with vif-nat


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Albert Bachand" <albertb@xxxxxxxxx>
  • Date: Wed, 13 Dec 2006 13:40:49 -0500
  • Delivery-date: Wed, 13 Dec 2006 10:40:52 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RFhDMdjdKMxTm4qquCkpbCpn0PIDNgBDxWrB7a8sJLZ1dW9iz2ku48drEDVYEMpdgywzWmAQ/P3oUBYn7AHneE2Rz16T3nOjGnGJUzVf5lfOcHfuAoEhaLzuVzj2ndtW2IXxL0SmkXC1eqc58cswAea5+e5V6SwMWLFAubeB4OY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello,

I'm having trouble with vif-nat under Xen 3.0.2 (I have to use this
version as I can't get FreeBSD to boot under 3.0.3.) The traffic seems
to be masqueraded in one direction but not when it comes back. i.e.
when I try to resolve a hostname from my domU, I see the request with
the internal IP go through vifX.0 and then masqueraded on eth0. The
problem is that the reply never make it back to the vifX.0 interface.
They reach eth0 but don't go any further.

I included my current setup at the end, any idea what's wrong?

Thanks!

Albert

root@se-1:~# cat /etc/xen/xend-config.sxp |grep '^('
(xend-relocation-server yes)
(xend-relocation-hosts-allow '^localhost$')
(network-script network-nat)
(vif-script vif-nat)
(dom0-min-mem 196)
(dom0-cpus 0)

root@se-1:~# cat /etc/xen/linux
name="linux"
kernel="/boot/vmlinuz-2.6.16-xen"
root="/dev/hda1"
memory=32
disk=['file:/vm/images/xen01.img,hda1,w','file:/vm/images/swap01.img,hda2,w']

# network
vif=[ 'ip=10.0.0.1' ]
dhcp="off"
ip="10.0.0.1"
netmask="255.0.0.0"
gateway="10.0.0.254"
hostname="linux"

extra="audit=1 3"


And the output of brctl and iptables:

root@se-1:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  10.0.0.1             anywhere            PHYSDEV
match --physdev-in vif28.0
ACCEPT     udp  --  anywhere             anywhere            PHYSDEV
match --physdev-in vif28.0 udp spt:bootpc dpt:bootps

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

root@se-1:~# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 1998 packets, 283K bytes)
pkts bytes target     prot opt in     out     source
destination

Chain POSTROUTING (policy ACCEPT 1936 packets, 278K bytes)
pkts bytes target     prot opt in     out     source
destination
 636 50838 MASQUERADE  all  --  any    eth0    anywhere
anywhere
   0     0 MASQUERADE  all  --  any    eth0    anywhere
anywhere

Chain OUTPUT (policy ACCEPT 649 packets, 52365 bytes)
pkts bytes target     prot opt in     out     source               destination

root@se-1:~# brctl show
bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.feffffffffff       no              peth0
                                                       vif0.0

_______________________________________________
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®.