Tunneling Through SIT for Free Internet (Mac/Linux)
Posted by Seb | Posted in Uncategorized | Posted on 03-03-2011-05-2008 |
10
If you are running a Mac or Linux, don’t worry, there is still a way to use SSH to get free internet. To access the internet in these operating systems, rather than using a GUI, we will be using the command line SSH client.
For those using Windows, scroll down. There is a tutorial for you guys under this post, or available here: Tunneling Through SIT for Free Internet (Windows).
A default installation of both Mac and Linux will almost certainly include the SSH command line tool, so just boot up your computer and we are ready to go. Open up the ‘Terminal’ program. You should see a prompt appear waiting for you to type some commands. We won’t have a pretty GUI to set up our options, so instead we do it using command line switches.
As with most Unix-ish programs, SSH has a pretty standard command line syntax, this is:
ssh [options] [username@]host [command]
Anything in square brackets is optional, we just need to fill in what we need.
As in the windows tutorial what we need to do is create a tunnel to the web server, since it is only inside SIT that unlimited internet exists. To do this, we can take a quick look at the man (manual) page for ssh by typing:
man ssh
We find that we want to create a local tunnel with the -L flag, which has the syntax: [bind_address:]port:host:hostport. Press ‘q’ to exit the man page. Putting all this information together, we now see that the command we will need is:
ssh -L8080:www-cache.usyd.edu.au:8080 unikey@ucpu0.ug.it.usyd.edu.au
What we have done is tunneled the proxy from a computer within SIT, and thus able to benefit from SIT’s free internet, to our laptop.
Finally, all we need to do is tell our computer to connect through the proxy. Set up the proxy settings for your computer to the following:
Proxy: localhost
Port: 8080
For a (very) brief description of how this works, read the “Why…” section of the windows article.

You can reduce that nasty looking command line near the end to something simple, like “ssh proxy”, using a ~/.ssh/config file.
(my current config is here, but you won’t want to copy it verbatim: https://home.flowblok.id.au/hg/flowblok/stable/dotfiles/file/tip/.ssh/config)
Hopefully, I will write a tutorial on writing a .ssh/config file once I finish writing all the other tutorials. Keep an eye out on our facebook page, and on the site for new info.
Also on linux if you use the flag ‘f’ it runs the forward in the background, meaning you can bind this command to a ‘Custom Application Launcher’. That way, you click the icon and assuming you have your public keys setup, you will be connected to the proxy instantly. Otherwise you just need to type your password.
Great tip!!, however while using this I have problem while accesing sites through https, for example gmail. Any ideas?
I’m using a mac btw
You need to tick the box in proxy settings thats labeled:
“Use this proxy server for all protocols”
This will fill in the details for all the other fields (with the same details as for HTTP), including the HTTPS proxy, which will then be used for accessing sites through HTTPS.
Has anyone tryied this on say…..a jailbroken ipad?
To aaron:
I use this on my jailbroken 3g (using openssh and mobileterminal) and it works very well.
Firstly all internet on campus is now free. Secondly, as of Snow Leopard Mac have Cisco VPN networking built in so you don’t have to use the shitty program that the Uni provides. I’ll leave it as an exercise for the reader to Google the instructions on how to set this up from the IT Helpdesk.
agreed! VPN is definitely now the way to go. It is a little confusing to setup as the instructions on the IT helpdesk are pretty bad. I’ll post up some later this week if people need it. Remeber the “!10″ after user name will open all ports too
Since android is based on a linux kernel,
Just helping anyone out with an android phone who felt abandoned by the VPN thing:
The two apps you need are TransparentProxy and ConnectBot, the rest is explained in the above article.