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

Notices


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

Rep: Reputation: 30
VNC and SSH


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 ! 10.10.0.3 -j DNAT --to 10.10.0.3:5900

where 10.10.0.3 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.

Questins:
#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.

J
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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