Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VNC over VPN (3 computers)

Posted on 2011-03-10
11
Medium Priority
?
809 Views
Last Modified: 2013-11-30
Hi,

I'm trying to set up VNC through a VPN connection.

I have three computers.
Computer A, Computer B, and Computer C.

Computer A will connect to Computer B through a VPN and through the VPN connection will VNC with Computer C.

Computer A is not on the same network.
Computer B shares a connection with Computer C. (will act itself as the tunnel from A->C)
Computer C will be remotely controlled by Computer A.

Currently, I'm using UltraVNC server on Computer C and can access it using Computer B.
I'm using Hamachi as the VPN connection from Computer A to Computer B, but I don't know how to connect to the VNC of Computer C through the connection from Computer A.

Any recommendations on software and set up? If I need to clarify anything, I'll be happy to try and rephrase it.

Thank you.
0
Comment
Question by:nu_gen68
  • 3
  • 3
  • 2
  • +2
11 Comments
 
LVL 33

Expert Comment

by:digitap
ID: 35105883
what kind of computer is computer is computer B? if windows, simply RDP to computer B from Computer A and get a vnc to computer C within the RDP session on computer B.

why don't you just get a vpn from computer A to computer C?
0
 
LVL 5

Expert Comment

by:shadowmantx
ID: 35105945
You can setup VNC with different ports for example:

Computer A - 192.168.1.100:5900
Computer B - 192.168.2.100:5901
Computer C - 192.168.3.100:5902
0
 

Author Comment

by:nu_gen68
ID: 35105977
For RDP part, didn't want to access RDP to another RDP, or VNC to another VNC.
Also, wouldn't that cause some lag by running 2 RDP sessions versus 1 RDP over a VPN?

Computer C's only access will come from Computer B, trying to limit outside access to Computer C.
Computer B in this scenario is just the tunnel for Computer A to access Computer C in a secure manner.

Computer A runs Windows 7.
Computer B and Computer C both run Windows XP Pro.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 3

Expert Comment

by:kevdines
ID: 35106496
Hi nu_gen68,

If I understand this right, you want to VPN to CompB, then VNC from CompA directly to CompC via this VPN connection (rather than having an intermediary VNC/RDP connection to CompB)? If so, then the principle sounds fine to me - it just sounds like a routing issue. CompB is going to have to be able to act as a router for CompA, and as I'm unfamilar with Hamachi I can't guarantee that this will work (but I'd be surprised if software that allowed incoming VPN connections couldn't also act as a router). If CompB is a Windows server, then you would just need to install the RRAS component and enable LAN routing.

Assuming that the network address ranges of the local network (CompA) and the remote network/s (CompB & CompC) don't overlap:

If CompB and CompC are on the same subnet on the remote network, then this should be pretty straight-forward. Once the VPN is up, confirm that you can ping CompB, then you should be able to ping other network resources, including CompC, on the remote network. If you can ping CompB, but not other resources, post back the output of pathping CompC.

If CompB and CompC are on different subnets, then you have two options. The easiest is just to make sure that your VPN connection to CompB has the 'Use default gateway on remote network' option ticked. I'm not familiar with Hamachi, so I can't direct you to the setting, but it shouldn't be hard to find. Provided that CompB is capable of routing, you should then be able to ping/VNC to CompC.

Alternatively, you can manually add a static route to CompA and CompC, i.e.:

CompA - 192.168.0.100 / 24
CompB - 192.168.10.150 / 24
CompC - 192.168.50.200 / 24

Provided that you can ping CompC from CompB already, you would need to type the following command on CompA:

route add 192.168.50.0 mask 255.255.255.0 192.168.10.150

This will direct all traffic for the network address range that CompC is on over your VPN connection to CompB (you could alternatively use: route add 192.168.1.50.200 mask 255.255.255.255 192.168.10.150 to only route traffic for CompC over the VPN). It doesn't matter whether you do this before or after you connect the VPN. You may also need to add a static route to CompC (as it will have no idea where to route traffic to the 192.168.0.x subnet in the example above). In this case, the command would be:

route add 192.168.0.0 mask 255.255.255.0 192.168.10.150

I think I'm making it all sound more complicated than it really is, but give it a try and let us know how you get on. If you're still having problems, post back the local IP addresses and subnets for CompA, CompB and CompC, and the ping results (once the VPN is connected) for:

CompA -> CompB
CompB -> CompC
CompA -> CompC
CompC -> CompA

HTH,

Kev
0
 
LVL 3

Expert Comment

by:kevdines
ID: 35106546
Boiling that, frankly massive, blurb down a bit:

CompB is going to have to be able to act as a router. XP can't do this natively, so hopefully the Hamachi VPN software will have the functionality for this. If not, digitap's advice is spot on - you'll just have to use two RDP/VNC connections. In my experience, nesting RDP sessions results in less lag than nesting VNC sessions.

Cheers,

Kev
0
 

Author Comment

by:nu_gen68
ID: 35114119
I've actually found another way. It's a program that forwards the connnection from Computer A to Computer C, while using Computer B as the tunnel.

Thank you for your replies and help.
0
 
LVL 33

Expert Comment

by:digitap
ID: 35114134
what's the program?
0
 

Accepted Solution

by:
nu_gen68 earned 0 total points
ID: 35142482
http://www.quantumg.net/portforward.php

That's the program that I ended up using.
0
 
LVL 33

Expert Comment

by:digitap
ID: 35142499
cool...thx!
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 35373052
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question