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

Re: [Xen-users] XEN/bridge mode


  • To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
  • Date: Sat, 9 May 2009 03:03:43 +0700
  • Delivery-date: Fri, 08 May 2009 13:05:01 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Fri, May 8, 2009 at 11:25 PM, Codecr <gerardo@xxxxxxxxxxxxxx> wrote:
>
> Hi!
>
> I want to forward the port 3389 from the domU to the virtual server with ip
> address 192.168.122.77 with not success...
>
> I tried a lot of iptables rules with no luck so far. Is this possible? I

yes.

> take a look at other post and I don't found an answer.
>
> By example:
> /sbin/iptables -t nat -A PREROUTING  -p tcp -i xenbr0 --dport 3389 -j DNAT
> --to 192.168.122.77:3389
>
> the virtual nic for the VM es vif9.0...

Is your dom0 ip address on xenbr0 or eth0?
Looks like you have libvirtd running (possibly on RHEL/Centos), in
which case the IP will be on eth0. If that's the case try changing the
rule to

/sbin/iptables -t nat -A PREROUTING  -p tcp -i eth0 -d dom0_ip_address
--dport 3389 -j DNAT  --to 192.168.122.77:3389

and if your default rule is reject you need to add an ACCEPT rule on
FORWARD chain as well.

Regards,

Fajar

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