SSH tunnel connect remote proxy

Squid server should be all set and ready to go. Next make sure you have shell access to the server via SSH. It doesn't matter if you use a password, passphrase, or blank passphrase. To set the tunnel up, run this:

ssh -L 3128:squidhost:3128 username@squidhost

You'll be asked for authentication and if you're successful, it'll look like you've logged into the remote box. If you open another window up and type

telnet localhost 3128

You'll see that you're now talking to squid on the remote server.

Finally, tell your browser to use the SSH tunnel as a proxy (localhost port 3128). I won't go over each individual browser here, but basically it'll be somewhere in the preferences. For the hostname, just type in "localhost" and for the port, type in "3128".

Now whenever you browse to a webpage, you'll be prompted for authentication or not. Type in your shell account information and you'll be all set to go. The browser might give a warning about authenticating through plaintext -- ignore it. It will be travelling through our SSH tunnel so it will be encrypted.

Try browsing and check in tcpdump, it should not show nothing if your browser is running with ssh-tunnel proxy!!

tcpdump |grep

Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.