Search squid archive

squid restart After Assertion Failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have squid 3.1.14 installed as tproxy, my issue is that squid is
restarting every while with this error assertion failed: stmem.cc:121:
"lowestOffset () <= target_offset"

below is squid configuration.

Thanks in advance for any help.

Regards,
Abbas


#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8	# RFC1918 possible internal network
acl localnet src 172.16.0.0/12	# RFC1918 possible internal network
acl localnet src 192.168.0.0/16	# RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly
plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80		# http
acl Safe_ports port 21		# ftp
acl Safe_ports port 443		# https
acl Safe_ports port 70		# gopher
acl Safe_ports port 210		# wais
acl Safe_ports port 1025-65535	# unregistered ports
acl Safe_ports port 280		# http-mgmt
acl Safe_ports port 488		# gss-http
acl Safe_ports port 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT

cache_effective_user squid
cache_effective_group squid
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
wccp2_router X.X.X.X
wccp2_forwarding_method l2
wccp2_return_method l2
wccp2_assignment_method mask
wccp2_service dynamic 80
wccp2_service dynamic 90
wccp2_service_info 80 protocol=tcp flags=src_ip_hash priority=240 ports=80
wccp2_service_info 90 protocol=tcp flags=dst_ip_hash,ports_source
priority=240 ports=80

dns_nameservers 8.8.8.8 208.67.222.222 208.67.220.220 4.2.2.2

url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
url_rewrite_children 15

acl videocache_allow_url url_regex -i \.youtube\.com\/videoplay
\.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplay
\.youtube\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i
\.youtube\.[a-z][a-z]\.[a-z][a-z]\/videoplay
\.youtube\.[a-z][a-z]\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplay
\.googlevideo\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.com\/videoplay
\.google\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplay
\.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i
\.google\.[a-z][a-z]\.[a-z][a-z]\/videoplay
\.google\.[a-z][a-z]\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i
\.mccont\.com\/ItemFiles\/(.*)?\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
proxy[a-z0-9\-]?[a-z0-9]?[a-z0-9]?[a-z0-9]?\.dailymotion\.com\/(.*)\.(flv|on2|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
vid\.akm\.dailymotion\.com\/(.*)\.(flv|on2|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
cdn\.dailymotion\.com\/(.*)\.(flv|on2|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
redtube\.com\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
\.xtube\.com\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_deny_url  url_regex -i \.xtube\.com\/(.*)(Thumb|videowall)
acl videocache_allow_url url_regex -i
\.vimeo\.com\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
\.amazonaws\.com\/(.*)\.vimeo\.com(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
c\.wrzuta\.pl\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
c\.wrzuta\.pl\/wa[0-9][0-9]?[0-9]?[0-9]?[0-9]?
acl videocache_allow_url url_regex -i
\.youporn\.com\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
msn\.com\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
msn\.(.*)\.(com|net)\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
msnbc\.(.*)\.(com|net)\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
\.tube8\.com\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_allow_url url_regex -i
\.blip\.tv\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_deny_url  url_regex -i \.blip\.tv\/(.*)filename
acl videocache_allow_url url_regex -i
\.break\.com\/(.*)\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg)
acl videocache_deny_url  url_regex -i crossdomain.xml
acl videocache_method method GET
acl videocache_other  src all
url_rewrite_access deny  videocache_deny_url
url_rewrite_access allow videocache_method videocache_allow_url
url_rewrite_access deny videocache_other
# Use 'url_rewrite_bypass on' if you are using Squid 3.x
url_rewrite_bypass on
# User 'redirector_bypass on' if you are using Squid 2.x
# redirector_bypass on


acl Users src X.X.X.X/21 X.X.X.X/21 X.X.X.X/21
http_access allow Users
http_access allow localhost
http_access allow manager localhost


# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

positive_dns_ttl 2 minute
negative_dns_ttl 1 minute

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128
http_port 3129 tproxy

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.

#cache_dir aufs /usr/local/squid/var/cache 250000 16 256
cache_dir aufs /disk2/cache 300000 16 256
cache_dir aufs /disk2/cache2 250000 16 256
cache_dir aufs /disk3/cache 300000 16 256
cache_dir aufs /disk3/cache2 250000 16 256
cache_dir aufs /disk4/cache 300000 16 256
cache_dir aufs /disk4/cache2 250000 16 256

# Leave coredumps in the first cache dir
coredump_dir /usr/local/squid/var/cache
cache_log /usr/local/squid/var/logs/cache.log
access_log /usr/local/squid/var/logs/access.log squid
cache_store_log /usr/local/squid/var/logs/store.log
logfile_rotate 10
store_dir_select_algorithm least-load
cache_mem 16384 MB	
maximum_object_size_in_memory 1 MB
maximum_object_size 65536 KB
cache_swap_high 90
cache_swap_low 80
ipcache_size 8192
fqdncache_size 8192
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA
#minimum_object_size 20 KB


# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160
refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160
refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160
refresh_pattern http://download\.macromedia\.com/ 0 80% 20160
refresh_pattern ftp://ftp\.nai\.com/ 0 80% 20160
refresh_pattern http://ftp\.software\.ibm\.com/ 0 80% 20160
refresh_pattern         cgi-bin         1 20% 2
refresh_pattern         \.asp$          1 20% 2
refresh_pattern         \.acgi$         1 20% 2
refresh_pattern         \.cgi$          1 20% 2
refresh_pattern         \.pl$           1 20% 2
refresh_pattern         \.shtml$        1 20% 2
refresh_pattern         \.php3$         1 20% 2
refresh_pattern         \?              1 20% 2
refresh_pattern         \.gif$          0   90%     2880
refresh_pattern         \.jpg$          0   90%     2880
refresh_pattern         \.jpeg$          0   90%     2880
refresh_pattern         \.png$          0   90%     2880
refresh_pattern         \.bom\.gov\.au     0   20%       2880
refresh_pattern         \.html$             0   50%     2880
refresh_pattern         \.htm$              0   50%     2880
refresh_pattern         \.php$             0   50%     2880
refresh_pattern         \.class$        0   90%     2880
refresh_pattern         \.zip$          0   90%     2880
refresh_pattern         \.jpeg$         0   90%     2880
refresh_pattern         \.mid$          0   90%     14400
refresh_pattern         \.shtml$        0   50%     2880
refresh_pattern         \.exe$          0   90%     14400
refresh_pattern         \.msi$          0   90%     14400
refresh_pattern         \.thm$          0   90%     2880	
refresh_pattern         \.wav$          0   90%     14400
refresh_pattern         \.txt$          0   90%     2880
refresh_pattern         \.cab$          0   90%     2880
refresh_pattern         \.php$          0   50%     2880
refresh_pattern         \.au$           0   90%     14400
refresh_pattern         \.mov$          0   90%     14400
refresh_pattern         \.xbm$          0   90%     2880
refresh_pattern         \.ram$          0   90%     2880
refresh_pattern         \.avi$          0   90%     14400
refresh_pattern         \.chtml$        0   50%     2880
refresh_pattern         \.thb$          0   90%     2880
refresh_pattern         \.dcr$          0   90%     2880
refresh_pattern         \.bmp$          0   90%     2880
refresh_pattern         \.phtml$        0   50%     2880
refresh_pattern         \.mpg$          0   90%     14400
refresh_pattern         \.pdf$          0   90%     2880
refresh_pattern         \.art$          0   90%     2880
refresh_pattern         \.swf$          0   90%     2880
refresh_pattern         \.mp3$          0   90%     14400
refresh_pattern         \.ra$           0   90%     2880
refresh_pattern         \.spl$          0   90%     2880
refresh_pattern         \.viv$          0   90%     2880
refresh_pattern         \.doc$          0   90%     2880
refresh_pattern         \.gz$           0   90%     2880
refresh_pattern         \.Z$            0   90%     2880
refresh_pattern         \.tgz$          0   90%     2880
refresh_pattern         \.tar$          0   90%     2880
refresh_pattern         \.vrm$          0   90%     2880
refresh_pattern         \.vrml$         0   90%     2880
refresh_pattern         \.aif$          0   90%     2880
refresh_pattern         \.aifc$         0   90%     2880
refresh_pattern         \.aiff$         0   90%     2880
refresh_pattern         \.arj$          0   90%     2880
refresh_pattern         \.c$            0   90%     2880
refresh_pattern         \.cpt$          0   90%     2880
refresh_pattern         \.dir$          0   90%     2880
refresh_pattern         \.dxr$          0   90%     2880
refresh_pattern         \.hqx$          0   90%     2880
refresh_pattern         \.jpe$          0   90%     2880
refresh_pattern         \.lha$          0   90%     2880
refresh_pattern         \.lzh$          0   90%     2880
refresh_pattern         \.midi$         0   90%     2880
refresh_pattern         \.movie$        0   90%     2880
refresh_pattern         \.mp2$          0   90%     2880
refresh_pattern         \.mpe$          0   90%     2880
refresh_pattern         \.mpeg$         0   90%     7200
refresh_pattern         \.mpga$         0   90%     2880
refresh_pattern         \.pl$           0   90%     2880
refresh_pattern         \.ppt$          0   90%     2880
refresh_pattern         \.ps$           0   90%     2880
refresh_pattern         \.qt$           0   90%     2880
refresh_pattern         \.qtm$          0   90%     2880
refresh_pattern         \.ras$          0   90%     2880
refresh_pattern         \.sea$          0   90%     2880
refresh_pattern         \.sit$          0   90%     2880
refresh_pattern         \.tif$          0   90%     2880
refresh_pattern         \.tiff$         0   90%     2880
refresh_pattern         \.snd$          0   90%     2880
refresh_pattern         \.wrl$          0   90%     2880
refresh_pattern         ^ftp:           0    60%     2880
refresh_pattern         ^gopher:        0    20%     1440
refresh_pattern -i (/cgi-bin/|\?) 0	0%	0
refresh_pattern .		0	20%	2880


forwarded_for transparent
via off


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux