Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am asked to come up with a solution for connection to ssh, vnc and rdp services in company firewall/proxy via one box on DMZ.

The task is to get users to connect to this one box and then to the service they would like to connect to.

Currently, I have one ubuntu machine on DMZ used for ssh. Users ssh to Ubuntu-DMZ and then to their target machine and the idea is to the same for VNC and RDP.

The solution should be open source/ubuntu where possible?

share|improve this question
    
What do you intend with "box"? I use SSHPlus to achieve similar issues, but don't know if could help. –  jasmines May 23 '12 at 14:30
    
Sorry, I meant a machine used for hopping –  rojanu May 23 '12 at 15:22
add comment

1 Answer 1

This is very easy to achive using the localforward of ssh:

Lets say you have a host GATEWAY and a host RDPSERVER which is reachable from GATEWAY. You want to give your user access to RDPSERVER:5900 when logged in on GATEWAY.

Users log in to GATEWAY using

ssh -N -L 33642:RDPSERVER:5900 user@GATEWAY

This opens a port 33642 on the users machine, which is transparently forwarded to RDPSERVER:5900. So, user can fire up an RDP viewer, point it to localhost:33642 and all data will be encrypted and tunneld to GATEWAY and from there to RDPSERVER. Once the user is logged in, he can check that the connection is up using

telnet localhost 33642

If you need several services to possibly different hosts, just add more instances of the -L parameter

On unix hosts, it may be best to distribute a ssh config file with the parameters.

As you can see, ssh has great features (and there is much more than localforward, check out remoteforwards and dynamic port forwards).

share|improve this answer
    
This is usefull to know but users wouldn't know what to do and they will be on Windows machines mostly –  rojanu May 24 '12 at 12:30
    
On windows machines, you can do the same thing with putty: - start an ssh connection to the rdpserver - run the vnc/rdp viewer to localhost There are vncviewers that combine both, also iSSH on the ipad has that function. –  Floyd May 27 '12 at 17:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.