LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-09-2010, 03:45 AM   #1
hodhod
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
squid hang until reload service


Hi all
frist i want to thank all who worked on this website
i was install squid and other service in my office network server
and install the same services with same configration on biger network about 150 machines
every thing well on office network but the other network have problem
squid hang and stoped serve any request and squidclient command return "alarm clock " message after many time but the service still run at port 3128 and status is started when i run /etc/init.d/squid reload its run again sometime and hang again

squid log file have not any problem on it
i install my server on gentoo with flags
Code:
net-proxy/squid-3.0.19  USE="zero-penalty-hit -caps -epoll* -icap-client (-ipf-transparent) -kerberos -kqueue -ldap -logrotate* -mysql -nis -pam (-pf-transparent) -postgres -radius -samba -sasl (-selinux) -snmp -sqlite -ssl"
my squid.conf
Code:
http_port 3128	transparent  
cache_store_log none
cache_mem 8 MB
forwarded_for delete
offline_mode on
icp_port 0
htcp_port 0

minimum_object_size 1 KB
maximum_object_size_in_memory 50 KB
maximum_object_size 800 MB

redirect_program /usr/bin/php /etc/squid/squidredirect
redirect_children 10



forward_timeout 300 seconds
connect_timeout 300 seconds
read_timeout 300 seconds
request_timeout 300 seconds
persistent_request_timeout 10 minute
client_lifetime 10 day


ie_refresh on



zph_tos_local 0x30
zph_tos_peer 0x0
zph_tos_parent off
zph_preserve_miss_tos on
cache_dir diskd /var/cache/squid 1248 16 256	
acl my_network src 172.30.0.0/255.255.0.0
acl my_networks src 192.168.10.0/255.255.255.0
acl my_local src 192.168.1.193
acl my_locals src 127.0.0.1
acl Safe_ports port 80 

acl CONNECT method CONNECT 
http_access deny !Safe_ports
http_access allow CONNECT Safe_ports 
http_access allow all
http_reply_access allow all


refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|tar.gz|gz|ram|rar|bin|ppt|doc|tiff|rar|img|arj|Z|dll|vob|m4a|xpi|bup|zix|xps|xlsx|xlsm|wv|wri|wps|wpl|wpd|wmf|wdb|wbcat|wba|vxd|vol|vob|vmdk|viff|vcd|vbs|upg|upd|uif|uccapilog|ttf|trm|tpl|torrent|tmp|tif|tib|thmx|themepack|theme|text|tbl|tao|sys|sym|sxw|sxc|swp|swe|svp|svg|sub|stf|sta|srt|src|sql|sol|sng|snf|snd|skp|sitx|sit|sisx|shs|shp|sfcache|set|scx|scr|scn|sav|rtf|rss|rsc|rom|rep|reg|ref|rec|rc|raw|r01|r02|r00|pzl|pwi|pub|pst|psd|psb|ps|prt|pro|prn|prj|prg|prf|pptx|pptm|ppt|ppsx|ppsm|pps|potx|ply|plt|plist|pf|pdb|pcx|pcm|pcd|part|pal|pak|pages|otf|opt|onepkg|one|old|ogg|odt|ods|odg|ocx|obj|o|nrg|not|nfo|nds|nco|nbu|nba|mtx|msi|mrw|mpp|mpc|mod|mobi|mkv|mis|midi|mht|mds|mdi|mdf|mdb|mbx|mac|m4v|m4p|m4b|m4a|m3u|m2ts|log|lng|lib|kml|keynote|jsp|json|jar|isz|ipd|inv|ini|ind|indd|inc|ifo|iff|idx|ics|icon|hqx|hi|fpx|gadget|fpt|fnt|fmt|flac|fla|fil|fax|es|eps|eng|emz|eml|dxf|dwg|dvf|dut|drw|drv|dotx|dotm|dot|docx|docm|dmo|dmg|djvu|dic|dib|def|deb|de|dct|dcr|dbx|dbf|db|dao|daa|cue|ctt|csv|crw|cr2|cpl|com|cnf|class|chm|cfg|cdx|cdr|cda|ccd|cbz|cbr|cap|cal|cab|c4d|bkp|bkf|bik|bat|bak|aup|auc|asx|arj|app|apk|ani|amr|ai|ace|accdt|accdb|abr|abm|aac|7zip|7z|3gp|3g2|3dr|3d|264|1st|iso|avi|wav|mp3|mov|qtm|mid|viv|mp4|3gp|mpg|mpeg|swf|flv|x-flv|wmv|wma|thm|dmg|rm|ram|dat|pdf|asis|prz|gif|png|jpg|jpeg|ico|jp(e?g|e|2)|tiff?|bmp|flv|js|css|xml|art|txt|inf|swf|xsl|html|htm)$ 61280000 3000% 525948000 override-expire ignore-no-cache ignore-no-store ignore-private override-lastmod ignore-reload  ignore-auth
#refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
#refresh_pattern -i \.(html|htm)$ 1440 40% 40320
refresh_pattern . 0 40% 40320

cache allow my_network 
cache deny my_networks  
cache allow my_local
cache allow my_locals
i try to remove redirectors but its the same
i think i have error in config but i don't know what
thanks for every one try help me

Last edited by hodhod; 06-09-2010 at 03:52 AM.
 
Old 06-10-2010, 12:26 AM   #2
hodhod
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: 0
about squit

is this a wrong place to ask about squid ?
 
  


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
installing squid : service squid start --> error jonaskellens Linux - Software 2 09-05-2008 03:06 AM
what is the difference between service network reload and service network restart ? markraem Linux - Networking 3 11-21-2007 03:08 PM
Tomcat reload servlet is very slow, but reload jsp is fast and good? gsbarry Programming 2 04-28-2006 09:34 PM
RELOAD problem by squid cccc Linux - Networking 0 04-05-2004 05:28 PM
Reload syslog service..failed saavik Linux - General 0 06-20-2003 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:53 AM.

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