

#Add the subnet that will be using the proxy. #acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines #acl localnet src fc00::/7 # RFC 4193 local private network range #acl localnet src 192.168.0.0/16 # RFC 1918 local private network (LAN) #acl localnet src 172.16.0.0/12 # RFC 1918 local private network (LAN) #acl localnet src 169.254.0.0/16 # RFC 3927 link-local (directly plugged) machines #acl localnet src 100.64.0.0/10 # RFC 6598 shared address space (CGN) #acl localnet src 10.0.0.0/8 # RFC 1918 local private network (LAN) Open squid’s main configuration file and add/edit the following sudo vim /etc/squid/nfĬomment out all of the default network ACL’s as shown below #acl localnet src 0.0.0.1-0.255.255.255 # RFC 1122 "this" network (LAN) The browser retrieves it from the cache.īefore we go on, let us back up the default configuration file. Next time you access pages that have been cached, your request does not need to go all the way to the internet. This way, it can act as a caching server as well by keeping all the pages being frequently visited within it.

You send a connection request to a forward proxy, and then it retrieves data from the internet on your behalf.


Use the following command to check the version number of Squid and the configuration options it was started with:Ĭonfigure options: ‘–build=x86_64-redhat-linux-gnu’ ‘–host=x86_64-redhat-linux-gnu’ ‘–program-prefix=’ ‘–prefix=/usr’ ‘–exec-prefix=/usr’ ‘–bindir=/usr/bin’ ‘–sbindir=/usr/sbin’ ‘–sysconfdir=/etc’ ‘–datadir=/usr/share’ ‘–includedir=/usr/include’ ‘–libdir=/usr/lib64’ ‘–libexecdir=/usr/libexec’ ‘–sharedstatedir=/var/lib’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–disable-strict-error-checking’ ‘–exec_prefix=/usr’ ‘–libexecdir=/usr/lib64/squid’ ‘–localstatedir=/var’ ‘–datadir=/usr/share/squid’ ‘–sysconfdir=/etc/squid’ ‘–with-logdir=$(localstatedir)/log/squid’ ‘–with-pidfile=$(localstatedir)/run/squid.Sudo dnf install squid -y Step 3: Configure forward proxy settings Use the following command to view information on the command: Squid should start immediately after the installation. Step #2: Verify and Checking the Version of the Squid the Installation
