Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have the following scenario:

Win laptop --> Cisco VPN --> SSH --> Internet-less linux server

Now, I need to install node.js on that server but it is a pain to do so without an Internet connection, so I was wondering if, given the above setup, it is possible to create a reverse tunnel from the server back to my laptop, so that the server can connect to the internet. I reckon that the VPN can be a show-stopper, but in case someone has an idea...

Edit: I have no root privileges on the server.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Before you do anything, make sure that you are not violating any security policies imposed by your organization. If that's not an obstacle, here's what I'd do. There may be somewhat simpler ways.

  • Install a web proxy server on your Windows laptop. Squid and Apache are both fine choices. Choose a free port for the proxy server, say 8080.
  • In your SSH configuration on the laptop, set up a remote tunnel that maps destination port 8080 to source localhost, port 8080. How to do so depends on what SSH client you are using.
  • SSH to the Linux server. Set your web browser to use the proxy server http://localhost:8080/.
share|improve this answer
    
thanks, that sound feasible. Only one issue. The server I'm connecting to is headless, so no browsers there. I need to access the internet via, for instance, wget. –  Luciano Fiandesio Apr 20 '11 at 8:57
    
For wget, set the environment variable http_proxy to http://localhost:8080/. (You can also specify the proxy in .wgetrc.) –  justarobert Apr 20 '11 at 10:09
    
Also ssh -X allows you to run X sessions on your local system –  Mister IT Guru May 1 '11 at 15:56

Can you "touch" the server you wish to connect to the internet? I'm assuming it's in some sort of DMZ and has network access, just not internet access.

If you can get to the server via SSH "direct" from your system, then configure internet connection sharing on your local system, and get your remote box to use your IP as it's gateway.

share|improve this answer
    
I'm not sure Internet Connection sharing will work with the CISCO VPN up. The server has network access, yes. –  Luciano Fiandesio Apr 20 '11 at 7:38

I assume that you can connect via the VPN, so that you are basically a client of the remote local network. From this point, you should already be able to connect to this local "internet-less" linux server. The question is now about the route. You can simply edit your hosts file or just work with the ip of the server. Or do I miss something here?

share|improve this answer
    
My question is about having the "internet-less" server to actually access the internet through an ssh tunnel back to my laptop. –  Luciano Fiandesio Apr 20 '11 at 8:56

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.