歡迎您光臨本站 註冊首頁

squid配置后無法訪問

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

squid配置后無法訪問

配置squid 做反向代理。但從外面訪問squid時報錯,請高手指點一下。謝謝!

------頁面報錯內容----------
發生了下列的錯誤:
• Access Denied.
拒絕訪問
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
當前的存取控制設定禁止您的請求被接受, 如果您覺得這是錯誤的,請與您網路服務的提供者聯繫。


----------squid.conf----------
cache_effective_user squid
cache_effective_group squid

visible_hostname squid1
#accel listen port
http_port 80 accel vhost vport
#accel domain
cache_peer 172.16.8.18 parent 80 0 no-query originserver no-digest name=www
cache_peer_domain www
cache_peer_access www allow all
#acl
acl manager proto cache_object
#acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80       # http
acl Safe_ports port 8080
acl LanSrc src 172.16.9.0/24
acl LanDst dst 172.16.9.0/24
#acl all src 0.0.0.0/0.0.0.0
acl LanDstDM dstdomain test.com

acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow LanSrc
http_access allow LanDst
http_access allow LanDstDM
http_access deny all
#http_access allow all

cache_log /usr/local/squid/var/logs/cache.log
access_log /usr/local/squid/var/logs/access.log
cache_dir ufs /usr/local/squid/var/cache/ 1000 16 256

maximum_object_size 10240 KB
maximum_object_size_in_memory 512 KB
cache_mem 256 MB

[火星人 ] squid配置后無法訪問已經有599次圍觀

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