In this tutorial I am going to configure squid acting as transparent proxy what does it means? It means we have no part of configurations on the client end, just to setup squid in transparent proxy mode so it will sits between client and internet. And redirect their port 80 requests to 3128 port which is default squid port. Here the simple steps which you need to perform on squid server.
Lab Environment:
- CetnOs 6.4 (as squid transparent proxy server), Hostname = pxy.lintut.com
- eth0 : (Connected to Internet) IP = 192.168.1.211/24, Gateway = 192.168.1.1 and DNS = 8.8.8.8
- eth1 : (Connected to LAN) IP = 10.0.0.1/24, and DNS = 172.0.0.1
- Xp Pro SP3 (Client PC for testing). Hostname = xp1.lintut.com IP = 10.0.0.11/8, Gateway = 10.0.0.1(squid Server’s IP) and DNS = 10.0.0.3
Step-1 Installing squid packages.
yum install squid -y
Step-2 Edit squid configuration file ‘/etc/squid/squid.conf’.