|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] XEN/bridge mode
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
|
|
|
|
|