歡迎您光臨本站 註冊首頁

CentOS-3.8做NAT+SQUID透明代理服務,squid無法啟動.

←手機掃碼閱讀     火星人 @ 2014-03-05 , reply:0

CentOS-3.8做NAT+SQUID透明代理服務,squid無法啟動.

初始化緩存目錄時出現:
# squid -z
2006/10/05 19:48:51| ACL name 'all' not defined!
FATAL: Bungled squid.conf line 26: http_reply_access allow all
Squid Cache (Version 2.5.STABLE3): Terminated abnormally.
已經將/var/spool/squid目錄設置為777了.

啟動squid時出現:
# /etc/init.d/squid start
init_cache_dir /var/spool/squid... Starting squid:         
我的squid.conf是這樣的:
http_port 3128
cache_mgr shinyrose@126.com
cache_mem 128 MB
dns_nameservers 61.144.56.101 202.96.128.68
cache_dir ufs /var/spool/squid 10240 12 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
error_directory /usr/share/squid/errors/Simplify_Chinese
visible_hostname proxy
cache_effective_user squid
cache_effective_group squid
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 443 563
cache_swap_low 85
cache_swap_high 90
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
acl our_clients src 192.168.0.0/255.255.255.0
acl other_clients src 0.0.0.0/0.0.0.0
http_access allow our_clients
http_access deny other_clients

請問是哪裡出問題呀?請大家幫幫忙.謝謝!

[ 本帖最後由 shinyrose 於 2006-10-5 19:56 編輯 ]
《解決方案》

你的 acl all src 0.0.0.0/0 設定跑去哪邊了呢 ?

==
《解決方案》

謝謝提醒了我!

[火星人 ] CentOS-3.8做NAT+SQUID透明代理服務,squid無法啟動.已經有653次圍觀

http://coctec.com/docs/service/show-post-45471.html