Академический Документы
Профессиональный Документы
Культура Документы
Mission
Use Cases
1. When you want to have control on what people browse on your lan.
2. When number of machine is more than the number of IP addresses you can
afford to buy.
3. When you want to help this holy world in saving some IPV4 addresses
Assumptions
1. You have a machine connected directly to internet that you are going to use
as a proxy server for other machines on your network.
2. The machines on your network are using 192.168.0.0/16 as private address
space. You can use anyone/multiple address spaces of the available but for
this howto we assume 192.168.0.0/16 as the local network.
3. The local IP address of the machine which will run squid proxy server is
192.168.36.204. You can have any IP, but for this howto we assume this.
How to proceed
First of all ensure that you have squid installed. After installing squid, you need to set access
control in squid configuration file which resides in /etc/squid by default. Open
/etc/squid/squid.conf and add/edit following lines according to your preferences. Few lines
already exist in the configuration file, you can add the rest.
Also, if you want squid to be started every time you boot the machine, execute the following
command
You have a squid proxy server running now. You can ask clients to configure there browsers to
use 192.168.36.204 as a proxy server with 8080 as proxy port. Command line utilities like elinks,
lynx, yum, wget etc. can be asked to use proxy by exporting http_proxy variable as below. Users
can also add these lines to ~/.bashrc file to avoid exporting every-time.
export http_proxy='http://192.168.36.204:8080'
export ftp_proxy='http://192.168.36.204:8080'
I highly recommend the book “Squid: The Definitive Guide (Paperback)” for further reading.