SSH has SOCKS proxy support built in, no need for squid and such unless you need to do more advanced things. Just start ssh with:
ssh -D 8080 myuser@remote_ssh_server
You can then set up your browser's proxy config to use 127.0.0.1:8080