Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2003 19:26:23 +0000
From:      Ceri Davies <setantae@submonkey.net>
To:        jaco@premsoft.co.za
Cc:        freebsd-questions@freebsd.org
Subject:   Re: [4.9-R] Ip forwarding for internal VNC.
Message-ID:  <20031219192623.GA652@submonkey.net>
In-Reply-To: <2063.196.39.12.116.1071861142.squirrel@webmail.premsoft.co.za>
References:  <2063.196.39.12.116.1071861142.squirrel@webmail.premsoft.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 19, 2003 at 09:12:22PM +0200, jaco@premsoft.co.za wrote:
> Hi everybody,
> 
> I have the following setup:
> 
> FreeBSD Server (4.9-R)
>  2 NIC's
>  [xl0,Public Range IP, 196.xx.xx.xx]
>  [xl1,Private Range IP, 192.168.0.1]
> 
> Windows 2k server
>  [Private IP, 192.168.0.2]
> 
> The Windows 2000 server is running VNC and is serving as
> an application server for windows software that is not-so-stable on
> FreeBSD. :P (The windows machine is not connected directly to the
> Internet for obvious reasons ;) )
> 
> What I want: I want to be able to connect to the VNC service
> running on the Windows machine, via the Internet.
> 
> Is it possible to set up port forwarding so that if I connect
> to the FreeBSD machine on port 5800, the request be forwarded
> to the Windows machine on port 5800? Do I need to set up the
> FreeBSD machine in any specific way to accomplish this setup?

Don't do that.
Use ssh port forwarding; that way the tunnel only exists when you want
it to, and you will be the only person who can use it.

Check the ssh manpage for details; see the -L option.

Ceri

-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031219192623.GA652>