Tips & Tweaks

How to Configur Squid in Linux

How to Configur Squid in Linux

Squide in Linux
Squide in Linux

SQUID CONFIGURATION

1. Server IP address is 192.168.0.254 and machine name is SERVER1.
2. Client machine IP address is 192.168.0.1 and machine name is client1.
3. Firewall should be disabled.
#chkconfig iptables off
#chkconfig ip6tables off
#service iptables stop
#service ip6tables stop
#iptables –F
#ip6tables –F
4. To check if all rpms required for squid are installed or not.
#rpm –qa | grep squid
Squid-2.6.STABLE6-3
5. If not, install it using
#rpm –ivh squid
6. Copy the original configuration file as squid.conf.orig to keep a back up copy of original configuration file.)
#cp /etc/squid/squid.conf /etc/squid/squid.conf.orig
7. Edit the configuration file using vi editor.
8. # vi /etc/squid/squid.conf
Edit these changes
Numbers in bracket shows line number in the squid configuration file.
Line numbers may change if you use a different version of squid.
[73] http_port 3128
[738] cache_mem 8 MB 738
[2500] http_access allow all
[2839] visible_hostname server
9. Save the configuration file using :wq
10. Stop and start the service
# service squid stop
# service squid start
11. Permanently on the service
#chkconfig squid on

Tags
Show More

ritesh

A Professional Tech Blogger who blogs at www.vritesh.com and also offers SEO Services for achieving top search engine rankings. Contact me for some free SEO Services which can be useful for your websites!

1 thought on “How to Configur Squid in Linux”

  1. I carry on listening to the reports lecture about getting free online grant applications so I have been looking around for the best site to get one. Could you advise me please, where could i get some?

Leave a Reply

Your email address will not be published. Required fields are marked *

Close

Adblock Detected

Please consider supporting us by disabling your ad blocker