[4.9-R] Ip forwarding for internal VNC.

2003-12-19 Thread jaco
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?

Thank you in advance.

Please copy me in any replies, as I am only subscribed to the digest.

Thank you.
Regards
Jaco van Tonder


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[Fwd: Re: [4.9-R] Ip forwarding for internal VNC.]

2003-12-19 Thread Steve Bertrand
Sorry, forgot to Cc list:

  [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.
 

Put the following in your natd.conf file:

redirect_port tcp 192.168.0.2:5800 5800

then HUP natd.

Steve


 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?
 
 Thank you in advance.
 
 Please copy me in any replies, as I am only subscribed to the digest.
 
 Thank you.
 Regards
 Jaco van Tonder
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [4.9-R] Ip forwarding for internal VNC.

2003-12-19 Thread Ceri Davies
On Fri, Dec 19, 2003 at 09:12:22PM +0200, [EMAIL PROTECTED] 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

-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]