What're the essential configurations needed to get a basic Squid running?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What're the essential configurations needed to get a basic Squid running?
Can anyone provide a quick-start guide to setup a basic Squid? I have read /etc/squid.conf, but I thought it might be better to get a basic squid running and then fine-tune from there.
Also, is a DNS required in the intranet for Squid to run properly?
> Can anyone provide a quick-start guide to setup a basic Squid?
There is not that much for a basic setup in squid.conf:
- specify where the squid cache is,
- specify where the logfiles are, if any (access.log, cache.log)
- allow access from your intranet by an appropriate acl rule.
And you are done.
However, do not forget to initialize the squid cache by running squid with the -z option the first time you start it (but squid will warn you if you forget it).
Do not forget that squid will only start if you have a working internet connection, unless you start it with the correct option to disable dns lookup at startup.
> Also, is a DNS required in the intranet for Squid to run properly?
It is not a must, if you have some working dns server IP addresses in /etc/resolve.conf.
However, it may speed you up if you have a local dns server, or at least a dnscache.
and i use INSERT YOUR OWN ROOL
acl heartnet src 192.168.16.1/255.255.255.0
acl user1 src 192.168.16.23
acl usertime time 09:00-10:00
http_access allow heartnet
http_access allow user1 usertime
http_access deny user1
http_access deny all
acl usertime time 09:00-10:00 is wrong syntax, correct it to
acl usertime D 09:00-10:00
And the last ACL is deny all, so no need to http_access deny user1
thank jiawj to reply,but not apply, maybe its work,
hi i want istall upadte version squid,i want update by yum,i uninstall yum,but how is install newer version yum,from internet,if update squid then need change of my existent squid conf. file
I use fedora core 4, kernel-2.6.11-1.1369_FC4,and squid-2.5stable9-7,and i am use transparent proxy
dear brother jiawj!
can u send me the squid.conf complete configuration file. i have running my network using these ip addresses, 192.168.1.1 to 192.168.1.254.
i m new to use linux. and want help of you. plz help me to setup my network and also internet sharing with squid proxy. i will be very thank ful to you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.