LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-14-2004, 06:57 AM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
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?

Thanks !
 
Old 04-14-2004, 10:04 AM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
> 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.
 
Old 12-19-2005, 09:22 AM   #3
baki
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
hi all linux friends
I use fedora core 4, kernel-2.6.11-1.1369_FC4,and squid-2.5stable9-7,and i am use transparent proxy.
my squid.conf

transparent proxy
httpd_host vertual
httpd_port 80
http_port 192.168.16.1:3128
icp_port 0
icp_query_timeout 0
maximum_icp_query_timeout 2000
dead_peer_timeout 10 seconds
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
memory_replacement_policy heap GDSF
cache_dir ufs /var/spool/squid 2000 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
emulate_httpd_log on
debug_options ALL,1
dns_nameservers 69.88.15.66 69.88.15.67
redirect_rewrites_host_header off
wais_relay_port 0
request_header_max_size 20 KB
request_body_max_size 0 KB
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
positive_dns_ttl 6 hours
negative_dns_ttl 1 minute
range_offset_limit 0 KB
forward_timeout 4 minutes
connect_timeout 1 minute
peer_connect_timeout 30 seconds
read_timeout 15 minutes
request_timeout 5 minutes
persistent_request_timeout 1 minute
client_lifetime 1 day
half_closed_clients on
pconn_timeout 120 seconds
shutdown_lifetime 30 seconds
# ACCESS CONTROLS
# -----------------------------------------------------------------------------
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

but its does work, i want 192.168.16.23 user only access internet mornning 9pm to 10 pm.
plz where i am wrong
 
Old 12-20-2005, 12:02 AM   #4
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
hello,baki:

Quote:
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
 
Old 12-20-2005, 01:52 AM   #5
baki
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
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
 
Old 12-21-2005, 12:14 AM   #6
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
don't worry about squid.conf, the config-file can apply the newer version of squid
 
Old 02-24-2006, 10:02 AM   #7
sohailark
LQ Newbie
 
Registered: Feb 2006
Posts: 10

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Squid setup help GraemeK Linux - Networking 3 06-10-2005 12:15 PM
Are all files in MPlayer essential Linux package needed ? samael26 Linux - Software 3 01-08-2005 10:51 AM
Some Questions and Opnions needed regarding Linux Server Configurations..Thank You :) lionelx Linux - Newbie 2 09-30-2004 10:58 AM
help needed with basic networking ludwig W Linux - Networking 7 01-31-2004 03:03 PM
what is needed for a basic linux installation niehls Linux - General 6 05-03-2003 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration