亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2528 | 回復: 4
打印 上一主題 下一主題

[proxy] 下了各squid for win32 配置好了用不了 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-05-11 23:36 |只看該作者 |倒序瀏覽
我下了各win 下的SQUID 打算做個簡單的代理,配置好后在瀏覽器上設置代理,出現(xiàn)錯誤提示:
---------------------------------
ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://www.sgu.edu.cn/

The following error was encountered:

    * 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.

Your cache administrator is webmaster.
Generated Thu, 11 May 2006 15:29:51 GMT by SquidNT (squid/2.5.STABLE3-NT-CVS)
------------------------------------------------

配置文件如下:

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_dir ufs e:\Squid/cache 100 16 256
cache_access_log e:\Squid/log/access.log
cache_log e:\Squid/log/cache.log
cache_store_log e:\Squid/log/store.log
mime_table e:\Squid/etc/mime.conf
pid_filename e:\Squid/log/squid.pid
ftp_user user@SquidNT
diskd_program e:\Squid/libexec/diskd.exe
unlinkd_program e:\Squid/libexec/unlinkd.exe
pinger_program e:\Squid/libexec/pinger.exe
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ftp:                1440        20Percent        10080
refresh_pattern gopher:        1440        0Percent        1440
refresh_pattern .                0        20Percent        4320

acl all src 0.0.0.0/0.0.0.0
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
acl MYLAN src 127.0.0.1-127.0.0.1/255.255.255.255

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl me src 192.168.161.251/255.255.255.255
acl qq src 192.168.153.33/255.255.255.255 192.168.153.253/255.255.255.255
http_access allow me qq
http_access allow MYLAN
http_access deny all

http_reply_access allow MYLAN
http_reply_access deny all
icp_access allow MYLAN
icp_access deny all
visible_hostname SquidNT
icon_directory e:\Squid/share/icons
error_directory e:\Squid/share/errors/English
coredump_dir e:\Squid/cache

不知道是什么原因呢?!另外,把http_access deny all 改成http_access allow all 可以上到QQ,但是瀏覽器錯誤依然!請各位幫忙了!

論壇徽章:
0
2 [報告]
發(fā)表于 2007-01-30 22:05 |只看該作者
那里下的?

論壇徽章:
0
3 [報告]
發(fā)表于 2007-01-31 09:09 |只看該作者
http_access allow me qq
這句不對頭,得改成兩條語句

論壇徽章:
0
4 [報告]
發(fā)表于 2007-01-31 09:23 |只看該作者
運行前,可以先用squid -k parse 來檢查一下你的配置文件。

論壇徽章:
0
5 [報告]
發(fā)表于 2007-01-31 13:03 |只看該作者
是acl的問題。
squid權威指南chap06里有一段:
熱門易犯的典型錯誤是編寫永遠不正確的規(guī)則
acl A src 1.2.3.4
acl B src 5.6.7.8
http_access allow A B
該規(guī)則永不正確,是因為某個源ip地址不可能同時等于1.2.3.4和5.6.7.8。這條規(guī)則的真正意圖是
acl A src 1.2.3 5.6.7.8
http_access allow A
對某個ACL值的匹配算法是,squid在訪問里列表里找到匹配規(guī)則時,搜索終止。假如沒有訪問規(guī)則導致匹配,默認動作是列表里最后一條規(guī)則的取反。例如,考慮如下簡單的訪問配置:
acl Bob indent bob
http_access allow Bob
假如用戶mary發(fā)起請求,她會被拒絕。列表里最后的(唯一的)規(guī)則是allow規(guī)則,它不匹配用戶名mary。這樣,默認規(guī)的動作是allow的取反,故請求被拒絕,類似的,假如最后的規(guī)則是deny規(guī)則,默認動作是允許請求。在訪問列表的最后加上一條,明確允許或拒絕所有請求,是好的實際做法。為清楚起見,以前的示例應該如此寫:
acl ALL src 0/0
acl Bob ident bob
http_access allow Bob
http_access deny ALL

src 0/0ACL表示匹配每一個和任意類型的請求。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP