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] XEN/bridge mode

To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] XEN/bridge mode
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <23449187.post@xxxxxxxxxxxxxxx>
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: <23449187.post@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

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