How to create a vpn/ssh tunnel: Difference between revisions

From DISI
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
SSH / VPN TUNNEL
SSH / VPN TUNNEL


[[For Mac:]]
FOR MAC:
 


Go to the app store and search for “ssh tunnel manager”
Go to the app store and search for “ssh tunnel manager”
Line 29: Line 28:


Your screen should look like this:
Your screen should look like this:


[[File:sshTunnelMac.png]]
[[File:sshTunnelMac.png]]


Then close the SSH Tunnel Manager.
Then close the SSH Tunnel Manager.
Line 44: Line 45:
Then check SOCKS Proxy
Then check SOCKS Proxy


Then under “SOCKS PROXY SERVER” enter localhost and to the right 5000.  It should look like this:
Then under “SOCKS PROXY SERVER” enter localhost and to the right 1080 (or whatever port you decided to use previously).   
 
It should look like this:
 


[[File:sshProxyMac.png]]
[[File:sshProxyMac.png]]


Click OK, then apply.
Click OK, then apply.
Line 59: Line 64:


Your computer will now act as if you were connected to the internet in the lab.
Your computer will now act as if you were connected to the internet in the lab.


When you’re done with the vpn session click on the ssh Tunnel Manager and click the “stop” button.
When you’re done with the vpn session click on the ssh Tunnel Manager and click the “stop” button.

Revision as of 18:13, 13 February 2014

SSH / VPN TUNNEL

FOR MAC:

Go to the app store and search for “ssh tunnel manager”

Download this free app.

Click the “Show in menu bar” button on the upper lefthand corner.

Open it and then click the little ‘+’ sign on the bottom part of the white box.

Enter the following information:

For the Name field, name it whatever you want.

Login: your_user_name

Host: portal.uoft.bkslab.org

Port: ssh_port

Then click on the Options button in the bottom righthand corner.

Make sure “Handle authentication” is checked and check the “Enable SOCKS4 proxy”.

Make sure the port is 1080 (or something above port 1024).

Your screen should look like this:


File:SshTunnelMac.png


Then close the SSH Tunnel Manager.

Go to System Preferences -> Network

Click on the connection you are connected to (ie Airport, Ethernet, etc).

Then click on Advanced in the bottom right corner.

Then click on Proxies up in the top right of the box.

Then check SOCKS Proxy

Then under “SOCKS PROXY SERVER” enter localhost and to the right 1080 (or whatever port you decided to use previously).

It should look like this:


File:SshProxyMac.png


Click OK, then apply.

Then go to the ssh Tunnel Manger and click the “play”button on the right hand side:

It should say connected and possibly prompt you for your password (the one associated with your ssh key).

To test if your tunnel is good, go to: http://whatismyipaddress.com/

This will tell you what ip address you have. If it says 142.150.250.15, you are good to go! :)

Your computer will now act as if you were connected to the internet in the lab.


When you’re done with the vpn session click on the ssh Tunnel Manager and click the “stop” button.

Then go to System Preferences -> Network -> Advanced -> Proxies

and uncheck the SOCKS Proxy, click OK, then apply.

That’s it!