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

The scenario:

  • I have a Linux laptop (linuxlaptop)
  • There's a piece of software that I develop that access a web service https://ws.behind-vpn.com that is behind a Cisco AnyConnect VPN.
  • I cannot connect to the VPN from the Linux laptop (the VPN certificate process is Windows/IE only)
  • Therefore, when doing integration testing, I do the following:

    1. Start a Windows VM (windowsvm)
    2. Connect the VPN from the VM
    3. Test the software on the VM

I am now looking to streamline the integration testing process a bit. I would like to be able to connect to the web service directly from my Linux laptop.

My questions:

  • I have a feeling that this should be possible using SSH port forwarding. Is it?
  • If possible, could someone explain how to configure ssh port forwarding to accomplish this?
  • Do I need a SSH server on windowsvm to do this? If so, what is a good SSH server for Windows?
share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If all you're doing is https (port 443), then yes.

Run sshd on your linux laptop and then connect to it using putty (or other ssh client) from any host within the firewall perimeter. This host needs to have direct access to the site you're testing. It can even be the server itself.

In putty, configure a "Remote" tunnel. Choose a random source port (pick one over 1024 and make sure it's not being used on your laptop) and set the destination to <YourTestingServerIP>:443.

Once ssh is connected and the tunnel is up, browse to the address https://localhost:<RandomLocalPort>/blah/blah/blah.html on your laptop and you should be golden.

share|improve this answer
    
It works, thanks! –  codeape Apr 19 '12 at 10:13
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.