Setting Up Squid Proxy
I find using a proxy server useful for testing sites and just general browsing. The following guide will show you how to set up a anonymous proxy for browsing.
First install the needed software: sudo apt-get install squid3 squid3-common
Now for security reasons we will filter incoming connections so that only your ip address will be allowed in. Open the configuration file sudo gedit /etc/squid3/squid.conf locate the line ""#acl localnet src 10.0.0.0/8""
You can now enter a specific ip address acl localnet src 22.214.171.124 or a subnet of address acl localnet src 126.96.36.199/24. This will filter what ip address can connect to the squid proxy
Search for the line http_access allow localhost and below it add http_access allow localnet
Another basic security change you can make is the default port. Search for the line http_port 3128 and change the default port to something non standard.
Now we will set up squid to allow anonymous browsing.
Search for forwarded_for on and change it to forwarded_for off
At the bottom of the file add the following
Now all the edits should be done. Save and exit the config file. Now we need to reload squid /etc/init.d/squid restart and if everything goes good your only 1 configuration away from surfing anonymously
Go to your browser proxy configuration and place the ip address (and port) of of the proxy server in it.
Now if you visit any website IE: http://www.whatismyip.com it should show you accessing the site as if you were sitting at the linux proxy server.
If you have trouble the usual culprit is configuration file, or you do not have the port specified open to interne connections.