This is a very simplified guide, I'm assuming that you're doing this on a fresh install of Debian Squeeze, this should however work for Wheezy and Sid, maybe even Lenny as well. Also assuming this is for personal proxy use and not some sort of proxy service.
That updates your apt repositories located in /etc/apt/sources.list and upgrades your current packages.
Oh also, because I prefer nano, install that.
Now to install squid.
You've installed and downloaded squid, it's running now. To verify it's running do:
You should get this as an output, or something similar.
Open the squid config file with your favorite text editor(mine is nano) located in /etc/squid/squid.conf
If you have nano installed, do: Ctrl + W 'acl localnet src'
If you have a dynamic IP it may be easier to add your networks' range. So for singular IP it would be:
For a dynamic IP range(less secure):
Then find:
And add under:
Also since we're using it as a proxy, we don't want our own IP forwarded, find this, uncomment and change on to off.
Now save and exit, Ctrl + X and then y(if you're using nano). Then:
Now you should be good to go, add it as a proxy in firefox. The port is 3128 by default.
Check if the proxy works by going on http://whatismyip.com
Code:
apt-get update && apt-get upgrade
That updates your apt repositories located in /etc/apt/sources.list and upgrades your current packages.
Oh also, because I prefer nano, install that.
Code:
apt-get install nano
Now to install squid.
Code:
apt-get install squid
You've installed and downloaded squid, it's running now. To verify it's running do:
Code:
ps aux | grep squid
You should get this as an output, or something similar.
Code:
root 29961 0.0 0.2 4852 576 ? Ss 19:04 0:00 /usr/sbin/squid -D -YC
proxy 29963 0.0 1.7 7116 4644 ? S 19:04 0:00 (squid) -D -YC
root 29978 0.0 0.2 1772 568 pts/0 R+ 19:06 0:00 grep squid
Open the squid config file with your favorite text editor(mine is nano) located in /etc/squid/squid.conf
If you have nano installed, do: Ctrl + W 'acl localnet src'
Code:
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
If you have a dynamic IP it may be easier to add your networks' range. So for singular IP it would be:
Code:
acl mynetwork src 192.25.24.35
For a dynamic IP range(less secure):
Code:
acl mynetwork src 192.25.24.0/192.25.24.99
Then find:
Code:
http_access allow localhost
And add under:
Code:
http_access allow mynetwork
Also since we're using it as a proxy, we don't want our own IP forwarded, find this, uncomment and change on to off.
Code:
#Default:
# forwarded_for on
Now save and exit, Ctrl + X and then y(if you're using nano). Then:
Code:
service squid restart
Now you should be good to go, add it as a proxy in firefox. The port is 3128 by default.
Check if the proxy works by going on http://whatismyip.com




















