Tuesday, September 18, 2012

Port Forwarding with Putty

It has been a few years since I last updated my Subversion repository. I'm currently on version 1.5.5 and I need to update it to 1.7.x. My repository is on the other side of an internal company firewall, the only ports that are open are 80,8080,443 and 22.  Subversion Edge has an admin screen that is hosted on port 3343. 

Scenario:  Need to reach port 3343 (Subversion Edge) on a Linux server behind a firewall which only allows ports 80,8080,443 and 22 from windows system (Windows XP, Windows Vista, Windows 7)

  1. Open putty, enter the IP address of the server you wish to connect to. 
  2. Select SSH-> Tunnels
  3. Select an unused source port above 1024, in this example enter 3343. For Destination enter the IP address and the port you want to connect to on that server.
Source port: 3343

Select Add

Then Open your connection, You are now port forwarding port 3343 from your PC to port 3343 on your Linux server.

Open your browser, then enter the following in your browser, you should be forwarded to the Admin Screen

No comments:

Post a Comment