Documente Academic
Documente Profesional
Documente Cultură
com
Squid Transparent proxy server : How to
configure
In our earlier tutorials (Squid Proxy server installation & configuration PART 1 & PART 2 ), we
have learned to install & configure squid proxy server. We will now, in this tutorial, learn to configure
Squid transparent proxy server. With setting up Squid transparent proxy server, we have a major
advantage of not configuring proxy setting on every users machine. Being transparent means that users
will have no idea that there requests are being passed through a proxy server.
Squid as transparent proxy acts as a gateway between internet and users. It redirects all the internet
traffic from port 80 to squid proxys port i.e. 3128. So now lets start with the setting squid as
transparent proxy
( Also read : Setting up squid with authentication )
Installation
Firstly, we need to install squid proxy server on the system. To install it, execute
$ sudo yum install squid -y
Configuring squid
Next we need to enable IP Packet Forwarding on the machine, to do this
$ sudo vim /etc/sysctl.conf
then change the following parameter to 1, i.e.
net.ipv4.ip_forward = 1
Save file & exit. Now execute the following command to implement the changes made,
$ sudo sysctl -p
Next, we will configure the squid proxy using its main configuration file i.e. /etc/squid/squid.conf,
$ sudo vim /etc/squid/squid.conf
& make changes as follows to the options mentioned,
http_access allow all
http_port 3128 intercept
visible_hostname squid.proxy
Now save the file & exit. Next to implement the changes restart the squid service,
$ sudo service squid restart
$ chkconfig squid on
If you think we have helped you or just want to support us, please consider these :-
LinuxTechLab.com