From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 21 06:06:31 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D621106568E for ; Fri, 21 Aug 2009 06:06:31 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from mail.lissoft.com.ua (mail.lissoft.com.ua [212.26.135.108]) by mx1.freebsd.org (Postfix) with ESMTP id A8C418FC64 for ; Fri, 21 Aug 2009 06:06:30 +0000 (UTC) Received: from mozart.lis.ua ([10.1.1.1] helo=shurik-nb.lis.ua) by mail.lissoft.com.ua with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MeNGf-000Pmc-Ej; Fri, 21 Aug 2009 09:06:29 +0300 Message-ID: <4A8E3969.9030203@shurik.kiev.ua> Date: Fri, 21 Aug 2009 09:06:33 +0300 From: Alexandr Krivulya User-Agent: Thunderbird 2.0.0.22 (X11/20090728) MIME-Version: 1.0 To: "Sean C. Farley" References: <4A8D0EC4.8030105@shurik.kiev.ua> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-emulation@freebsd.org Subject: Re: virtualbox port forwarding X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 06:06:31 -0000 Thx for your reply, Sean. My problem was solved by changing "TCP" to "tcp" in "VBoxInternal/Devices/pcnet/0/LUN#0/Config/RDP/Protocol, Value: TCP" Sean C. Farley пишет: > On Thu, 20 Aug 2009, Alexandr Krivulya wrote: > >> Hello, >> >> I have host with FreeBSD 7.2-RELEASE-p3 running Win2K3 under >> virtualbox-3.0.51.r22226 with cofigured terminal service. I configured >> port forwarding to get access terminal service on win2k3 outside of a >> virtual machine, but it doesn't work :( >> >> shurik@shurik-nb:~> VBoxManage getextradata WIN2003STD enumerate >> VirtualBox Command Line Management Interface Version 3.0.51_OSE >> (C) 2005-2009 Sun Microsystems, Inc. >> All rights reserved. >> >> Key: GUI/AutoresizeGuest, Value: on >> Key: GUI/Fullscreen, Value: off >> Key: GUI/LastCloseAction, Value: powerOff >> Key: GUI/LastWindowPostion, Value: 297,74,800,647 >> Key: GUI/MiniToolBarAlignment, Value: bottom >> Key: GUI/MiniToolBarAutoHide, Value: on >> Key: GUI/SaveMountedAtRuntime, Value: yes >> Key: GUI/Seamless, Value: off >> Key: GUI/ShowMiniToolBar, Value: yes >> Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/RDP/GuestPort, Value: 3389 >> Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/RDP/HostPort, Value: 53389 >> Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/RDP/Protocol, Value: TCP >> >> sockstat shows listening port 53389: >> >> shurik@shurik-nb:~> sockstat -l -4|grep 3389 >> shurik VirtualBox 9553 42 tcp4 *:53389 *:* >> >> Network inside of virtual machine works good. > > Your configuration looks correct. I had something similar to use ssh > with a guest that did work: > Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/CentOS/GuestPort, Value: 22 > Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/CentOS/HostPort, Value: > 30022 > Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/CentOS/Protocol, Value: TCP > > Here are my thoughts: > 1. Is the guest configured to allow remote desktop? Ah. I see you > already have it configured. > 2. Is the guest configured to allow remote desktop through its firewall? > 3. Is there a firewall on the host that could interfere with the > connection? This is even if you are trying to communicate from the > host. > 4. You could run tcpdump -n -i lo0 port 53389 on the host to see if any > packets are coming out of the guest. This is assuming you are > connecting from the host to localhost. > 5. Are you attempting to connect with rdesktop such as: > rdesktop localhost:53389 > 6. You could try the patch posted on this list yesterday from Juergen > Lock to allow the use of tap devices (requires manual setup) and > avoid having to use port forwarding. > > Sean