hi , all
im wondering ,
i have followed example of :
http://wiki.squid-cache.org/ConfigExamples/SmpCarpCluster
my question is , why the wccp config dont work if it was put in
fronted.conf ????
why it only work if i put it in backed.conf ???
i read about backend.conf , we put in it the heavy traffic and caching
disks !!!
here is my config i did :
[root_at_drx ~]# cat /etc/squid/squid.conf
#########################
dns_nameservers x.x.x.x 8.8.8.8
#####################
# 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 localnet src x.x.x.x.x.x./xx
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
#
# Recommended minimum Access Permission configuration:
#
# 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
#######################################################################
dns_v4_first on
# 3 workers, using worker #1 as the frontend is important
workers 3
if ${process_number} = 1
include /etc/squid/frontend.conf
else
include /etc/squid/backend.conf
endif
#####################################################
http_access deny all
##############################
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
####################################################
[root_at_drx ~]# cat /etc/squid/backend.conf
# each backend must listen on a unique port
# without this the CARP algorithm would be useless
http_port 127.0.0.1:400${process_number}
#######################################################################
cache_dir rock /rock1 10000 max-size=32768 swap-timeout=350
cache_dir rock /rock2 10000 max-size=32768 swap-timeout=350
cache_dir rock /rock3 10000 max-size=32768 swap-timeout=350
#######################################################################
visible_hostname backend.example.com
#######################################################################
cache_log /var/log/squid/backend.cache.log
access_log stdio:/var/log/squid/backend.access.log
#############################################################
cache_mem 512 MB
maximum_object_size_in_memory 10 MB
minimum_object_size 0 KB
maximum_object_size 100 MB
######################################
http_access allow localhost
###########################
wccp2_router x.x.x.x
wccp_version 2
wccp2_forwarding_method 2
wccp2_return_method 2
wccp2_assignment_method 2
wccp2_service dynamic 92
wccp2_service_info 92 protocol=tcp flags=src_ip_hash priority=250 ports=80
wccp2_service dynamic 93
wccp2_service_info 93 protocol=tcp flags=dst_ip_hash,ports_source
priority=250 ports=80
[root_at_drx ~]# cat /etc/squid/frontend.conf
####################################################################
http_port x.x.x.x:xxx
http_port x.x.x.x:xxx tproxy
acl mysubnet src xxxx.xxxxxxx.,xxx
http_access allow mysubnet
############################################################################################
cache_mgr xxxxx
cachemgr_passwd xxxxxx all
# add user authentication and similar options here
http_access allow manager localhost
http_access allow manager mysubnet
http_access allow mysubnet manager
http_access deny manager
#######################################################################
################################################
cache_mem 2500 MB
#################################################
maximum_object_size_in_memory 200 MB
minimum_object_size 0 KB
maximum_object_size 2 MB
##################################################
cache_log /var/log/squid/frontend.cache.log
access_log stdio:/var/log/squid/frontend.access.log
##################################################################
visible_hostname frontend.example.com
#######################################################################
cache_swap_low 95
cache_swap_high 99
###########################################################
server_persistent_connections off
client_persistent_connections off
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95
fqdncache_size 65535
ipcache_size 65535
ipcache_low 98
ipcache_high 99
#####################################################
###################################################################
cache_effective_user squid
cache_effective_group squid
#######################################################
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
#######################################################
regards
-----
Dr.x
-- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/why-wccp-config-with-smp-must-be-put-in-backend-conf-tp4662961.html Sent from the Squid - Users mailing list archive at Nabble.com.Received on Mon Oct 28 2013 - 07:11:19 MDT
This archive was generated by hypermail 2.2.0 : Mon Oct 28 2013 - 12:00:12 MDT