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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-14-2004, 07:57 AM
|
#1
|
Member
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Rep:
|
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 !
|
|
|
04-14-2004, 11:04 AM
|
#2
|
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:
|
> 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.
|
|
|
12-19-2005, 10:22 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 4
Rep:
|
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
|
|
|
12-20-2005, 01:02 AM
|
#4
|
Member
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121
Rep:
|
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
|
|
|
12-20-2005, 02:52 AM
|
#5
|
LQ Newbie
Registered: Oct 2005
Posts: 4
Rep:
|
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
|
|
|
12-21-2005, 01:14 AM
|
#6
|
Member
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121
Rep:
|
don't worry about squid.conf, the config-file can apply the newer version of squid
|
|
|
02-24-2006, 11:02 AM
|
#7
|
LQ Newbie
Registered: Feb 2006
Posts: 10
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|