LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2008, 11:49 PM   #1
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
VNC alternatives without port forwarding


I have a system sitting 2 blocks away on a network where I have no permission and authority to configure the router. Therefore I have no way of accessing the system outside, unless that remote system opens a connection to me, where my primary location has port forwarding.
Is there any way I could configure my remote machine so I could visually control it from my primary location?
The remote system is running Windows XP and my primary machine runs Linux.
Thanks in advance.
 
Old 02-22-2008, 03:38 AM   #2
Speedy Gonzales
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Rep: Reputation: 0
Hi there

try using NX nomachine, works between platforms and seems quicker than a lot of other software

Started using it a while ago and so far no complaints and most importantly it's at the right price - FREE

http://www.nomachine.com/

Let me know what you think
 
Old 02-22-2008, 07:54 AM   #3
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by JohnHulley View Post
Hi there

try using NX nomachine, works between platforms and seems quicker than a lot of other software

Started using it a while ago and so far no complaints and most importantly it's at the right price - FREE

http://www.nomachine.com/

Let me know what you think
Looks like a very cool piece of software. However, can the free Windows client be used as a server? Like the client automatically connects to my Linux machine so I can control the Windows machine?
I unfortunately cannot establish connection in that direction, the remote machine has to connect to me (I do not have the access to open port 22 to establish the connection from here)

Basically a rough diagram:

Case 1:
[Local Linux machine]-[My router] ---X---> [Remote router w/o port forwarding]-[Remote Windows machine]
(No connection due to the fact that I am not reaching the remote machine)


Case 2:
[Local Linux machine]-[My router, port forwarding] <------- [Remote router]-[Remote Windows machine]
(Connection established because my Linux machine can be reached from outside)

So basically what I need is the server side on Windows to be connecting to my Linux machine in order for me to control the Windows machine. This sounds complicated, and I am afraid it is. But I still need this.

To clarify why exactly I am doing this, I need to be able to connect to my office machine from home. My office machine is the one running Windows and it is on the closed office network, with access TO outside (internet access) but not the other way around. It doesn't matter what OS I should be using at home, I have both Windows and Linux here.

Let me know if any part of this is confusing.
Thanks in advance.
 
Old 02-22-2008, 08:13 AM   #4
Speedy Gonzales
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Rep: Reputation: 0
According to the website it will do everything your asking.

I go from a windows machine and log on to linux machines.

I assume your home IP is dynamic and your work IP is fixed, if so you MAY need to set up a port forwarding rule on your WORK router depending on how big the network is sitting behind it and your home router should not need any extra config

Go here and see if it fits the bill http://www.nomachine.com/screenshot/server-install.php
 
Old 02-22-2008, 08:20 AM   #5
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
I'm hoping not to muddy the waters here, but I was under the impression that ultravnc had tools that would enable you to establish connections without having to make adjustments to the router. Upon checking the website, it turns out that it does - check out the nat tools:

Code:
ultravnc.sf.net
iirc, the repeater tool may also accomplish the same thing.

It's possible, therefore, that other vnc flavours offer similar tools

I'm also *relatively* certain that, on your end, if the vncviewer is started in 'listen' mode, rather than initiate a connection, it waits for the server to initiate contact. Sorry, I can't help you further than this point, but it may be something for you to investigate.

hth,
 
Old 02-22-2008, 08:49 AM   #6
Speedy Gonzales
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Rep: Reputation: 0
I have been finding any of the VNC family unreliable just latelty and not connecting all the time. I set up routers to port forward when more than 1 machine is using remote software

e.g port 5800 forward to PC 1

port 5900 forward to PC 2

and anything in between.

This was simple to do so have never done it any other way
 
Old 02-22-2008, 11:30 AM   #7
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Quote:
Originally Posted by JohnHulley View Post
e.g port 5800 forward to PC 1

port 5900 forward to PC 2
I think what you want is

forward ports 5800 and 5900 to PC 1,
forward ports 5801 and 5901 to PC 2 (ports 5800 and 5900, typically)

They have different purposes -- HTTP (VNC runs a tiny website) and actual VNC transport.
 
Old 02-22-2008, 04:36 PM   #8
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
I really cannot do anything to the router at work.
Looks like NAT2NAT is the stuff though. I will give it a try.
 
Old 02-22-2008, 05:03 PM   #9
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Without touching your work's router, you can still ssh from your Windows box at work to anywhere you like, e.g., to your home.
And on the back of that ssh connection, you can tunnel (= forward) any port you like. (I know your subjects says "without port forwarding", but this would work. And probably you just meant no authority to mess with work's outer firewall/router.)

Possible problems:

(A) The connection might die (e.g., due to inactivity of 2 hours or so; network problems). You could set up your Windows box to periodically re-initiate the connection. Maybe avoid connecting again if the old connection still stands.

(B) Your work box might not know how to connect to your home. JohnHulley raised the question of dynamic IP -- so please tell us your situation. There are ways to get around that, too.

/Quigi
 
Old 02-22-2008, 06:17 PM   #10
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Quigi View Post
Without touching your work's router, you can still ssh from your Windows box at work to anywhere you like, e.g., to your home.
And on the back of that ssh connection, you can tunnel (= forward) any port you like. (I know your subjects says "without port forwarding", but this would work. And probably you just meant no authority to mess with work's outer firewall/router.)

Possible problems:

(A) The connection might die (e.g., due to inactivity of 2 hours or so; network problems). You could set up your Windows box to periodically re-initiate the connection. Maybe avoid connecting again if the old connection still stands.

(B) Your work box might not know how to connect to your home. JohnHulley raised the question of dynamic IP -- so please tell us your situation. There are ways to get around that, too.

/Quigi
Perhaps I am not such an advanced user... I don't know all that much about shh.
I've connected to my Linux box using PuTTY, to gain access to command line, and I heard of tunneling X11 through ssh but I have never heard of tunneling Windows VNC through ssh.
I need to be controlling the Windows machine at work from the machine at home, not the other way around. Perhaps I am clueless about the abilities of ssh. In that case I don't know what to do.
Is ssh a 2 way connection?
 
Old 02-22-2008, 08:20 PM   #11
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Indeed, the ssh port forwarding will work. I know that Putty has a gui, etc, but I'll give you the command using ssh, and you can (hopefully) figure it out for Putty. (you may also want to consider looking into installing openssh on your windows box...)

from your windows box:

the simple command: ssh -R 5900:localhost:5900 <your linux box>

the -R option tells ssh which port on your linux box will listen for a connection from localhost:5900

So, on your linux box, you would just run vncviewer :0

If port 5900 on your linux box is already being used (eg, you have vnc server already running on your linux box), then use another port:

ssh -R 5901:localhost:5900 <your linux box>

Hence, vncviewer :1

A "cleaner" way to do this would be:

ssh -N -f -R 5901:localhost:5900 <your linux box>

This forks the process to the background, so you don't need to leave the terminal open. Don't know how this would work using putty...


hth

Last edited by mrclisdue; 02-22-2008 at 08:25 PM.
 
Old 02-22-2008, 11:25 PM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
so you can't modify the router/firewall at work, but you CAN tell ssh what port to use.. it doesn't have to use port 22 you know.. what's wrong with 80 (http) or 443 (https).. Surely those ports are allowed to egress the work network without restriction.. (although a good firewall or proxy might still catch it)

So the work PC would initiate the ssh tunnel using port 80 to your home machine.....
 
Old 02-22-2008, 11:57 PM   #13
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I tunnel vnc through ssh all the time, and to a Windows server at that.

Install cygwin on the XP box. That will give you a *nix environment to work with. As I understand your problem, you will want to run a reverse tunnel. Google for it; the setup you want is to be found on the 'net.
 
  


Reply

Tags
nomachine, nx, real, remote desktop, ultra, vnc



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
vnc port forwarding problem PatrickNew Linux - Networking 9 12-27-2007 05:32 AM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
VNC problem with port forwarding tuananhbirm Linux - Software 4 02-01-2006 11:08 PM
vnc port forwarding krayz1e Linux - Newbie 9 08-14-2005 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 AM.

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