|
|

楼主 |
发表于 2005-5-25 18:32:18
|
显示全部楼层
我很菜,我把我的配置贴出来,希望好心人指点
http_port 3128
cache_mem 32 MB
#Default:
# cache_swap_low 90
# cache_swap_high 95
#Default:
# maximum_object_size 4096 KB
#Default:
# minimum_object_size 0 KB
#Default:
# maximum_object_size_in_memory 8 KB
#Default:
# ipcache_size 1024
# ipcache_low 90
# ipcache_high 95
#Default:
# fqdncache_size 1024
#
#Default:
# cache_replacement_policy lru
#Default:
# memory_replacement_policy lru
# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -----------------------------------------------------------------------------
cache_dir ufs /var/spool/squid 100 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
dns_nameservers 202.118.1.53
#Default:
# client_netmask 255.255.255.255
# ACCESS CONTROLS
# -----------------------------------------------------------------------------
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl mygroup src 219.216.68.15/255.255.255.255
acl mygroup src 219.216.68.97/255.255.255.255
acl mygroup src 219.216.68.131/255.255.255.255
acl mygroup src 219.216.68.16/255.255.255.255
acl mygroup src 219.216.68.206/255.255.255.255
acl mygroup src 219.216.68.126/255.255.255.255
acl mygroup src 219.216.68.176/255.255.255.255
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
http_access allow mygroup
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
#Default:
# http_reply_access allow all
http_reply_access allow all
sible_hostname 219.216.68.248
error_directory /usr/share/squid/errors/Simplify_Chinese
有几点疑问第一就是dns_nameserver是否要填,还有就是client_netmask是否也要指定。我所看的都是说有两块网卡,不知单网卡怎么弄。哪位高人能说说具体运行步骤吗? |
|