Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-26-2001, 10:43 AM   #1
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30

Hope the networking guru's can help me out here.

The situation is this, I have a windows machine on my home network running a VNC Server. This machine sits behind a linux machine that acts as the firewall/router(doing NAT). I am currently at work and trying to connect to said windows machine via VNC.

I have set this in my firewall:

# iptables -t nat -A PREROUTING -p tcp --dport 5900 -s ! -j DNAT --to

where is the IP of the windows machine. I get a VNC prompt to enter my password when I then try to connect to the machine and then nothing....vnc just sits idle. I have tested that VNC is working by connecting to the Linux machine on :1 and it works fine, so this leads me to think that something is wrong w/ my firewall dropping packets.

#1 Is this the best way to do it?
#2 Can I use SSH(for obvious security) to do the forward from the linux machine to the windows machine behind it(even tho it has an unroutable IP)?

I have tried using the ssh howto on the VNC homepage...but it didn't even give me a login prompt like using DNAT did.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh with vnc Dillius Linux - Security 1 03-11-2005 05:53 PM
VNC over SSH or ????? alirezan1 Mandriva 2 01-04-2005 11:55 AM
vnc with ssh lawkh Linux - Newbie 1 02-10-2004 02:12 AM
ssh and VNC linuxnube Linux - Security 4 01-28-2004 11:12 PM
how to use vnc with ssh ? norikage Mandriva 9 08-30-2003 01:40 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration