DelphiFAQ Home Search:

Setting up an SSH tunnel into a corporate network

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

How can I access a machine that is on my company's internal network? I want to access an internal web server. The machine has the IP number 10.10.20.20 but it has not external visible IP number.
My company has one machine open that allows SSH access.

Answer:

You can set up a tunnel to that internal machine using an SSH client, for example the popular 'putty'.
You can download putty here.

Here are the steps necessary to set up a tunnel to a web server on 10.10.20.20
1. Open putty, 
    Session: 
        - Host Name: ssh.mycompany.com
        - Port: 22
    Connection:
        - SSH: check the box for "Enable compression"
                - X11: check the box for "Enable X11 forwarding"
                - Tunnels:   Source port: 8888
                                 Destination: 10.10.20.20:80  
                                 (the target you want to browse) 
                    Then select "Add"
    Select "Open"
    Login:  
    
2. Open Microsoft Internet Explorer:
    Tools --> Internet Options
    select "Connections" tab
    Select "LAN Settings"
    Check the box "Use a proxy server for your LAN ....."
        and enter localhost for Address and 8888 for Port
    OK
    OK
 
3. Type http://localhost:8888/ 

Remember to undo step 2 after done step 3, otherwise you can't browse the internet later on.


Comments:

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: