A suite of scripts for Mac, Windows, and Linux for easily establishing encrypted SSH tunnels and proxying Internet traffic through them.
This software has been successfully used to route past the “Great Firewall of China”, as well as numerous censorware used by government and corporations in the United States.
MacOS X:
jtunnel.command – edit with a text editor to set the 'user' and 'host' variables if you do not have Dubnet access (see below). Set your Safari or Firefox settings to “SOCKS” on “localhost” port 9911 – make sure
HTTP proxy,
FTP proxy, etc. are left blank.
Windows:
jtunnel.bat – same as above. Additionally this script will automatically set your Internet Explorer proxy settings, although
IE has to be closed before the script is run. Close
IE and exit jtunnel.bat for your previous proxy settings to be restored.
DIY (Linux, etc.): All the magic in jtunnel 1.0 is in dynamic ssh port forwarding using SOCKS. One can also use local forwarding and an
HTTP proxy (see below). For better explanations of this Google for “ssh port forwarding”
USER=jamiew
HOST=dubnet
ssh -v -C -N -f -D 9911 $USER@$HOST
ssh opts breakdown:
-v: verbose
-C: compression
-N: no shell (this is just a tunnel)
-f: fork the process (run in background)
-D 9911: do dynamic port forwarding to local port 9911