台灣最大程式設計社群網站
線上人數
1009
 
會員總數:246145
討論主題:189731
歡迎您免費加入會員
討論區列表 >> Linux / Unix >> Transparent Proxy的問題
[]  
[我要回覆]
回應主題 加入我的關注話題 檢舉此篇討論 將提問者加入個人黑名單
Transparent Proxy的問題
價值 : 70 QP  點閱數:2846 回應數:0
樓主


門外漢
0 34
452 54
發送站內信

想請問一下版上的前輩們通透式proxy的問題
下面是我的squid.conf檔

acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# 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 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
acl lanuser src 192.168.1.0/24
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
acl BENZING dstdomain .benzing.com.tw


http_access allow BENZING


http_port 80 transparent

cache_peer sms.benzing.com.tw parent 80 0 no-query originserver no-digest weight=1 name=sms
cache_peer 192.168.1.113 parent 80 0 no-query originserver no-digest weight=1 name=sms2
cache_peer_domain sms sms.benzing.com.tw
cache_peer_domain sms2 sms2.benzing.com.tw


hierarchy_stoplist cgi-bin ? .php .jsp .doc .txt
cache_mem 32 MB

http_access deny !Safe_ports
http_access allow localnet
http_access allow localhost
http_access allow lanuser
acl lanuser_forwarded src 192.168.1.0/24
follow_x_forwarded_for allow localhost
follow_x_forwarded_for allow lanuser_forwarded
http_access allow manager localhost
http_access allow to_localhost
http_access allow Safe_ports
http_access deny !Safe_ports
http_access allow all



cache_dir ufs /var/spool/squid 400000 16 256
maximum_object_size 5120 KB
cache_swap_low 90
cache_swap_high 95
emulate_httpd_log on

coredump_dir /var/spool/squid
acl QUERY urlpath_regex cgi-bin \? \.php .\jsp \.cgi \.aspx
cache deny QUERY
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


打開網頁,都會是"系統回應了下列錯誤訊息:(113) No route to host"

下面則是access.log出現的訊息
大部分都是TCP_MISS/503
有時會摻雜TCP_MISS/200 TCP_MISS/000
小弟已經測試兩天了,也google很多,想請問版上有高手可以求救嗎?

1356002211.007 7 1.165.169.94 TCP_MISS/200 8780 GET http://sms2.benzing.com.tw/ - FIRST_UP_PARENT/sms2 text/html
1356002215.376 7008 1.165.169.94 TCP_MISS/503 4380 GET http://sms.benzing.com.tw/ - DIRECT/60.249.105.71 text/html
1356002215.377 10020 1.165.169.94 TCP_MISS/503 4516 GET http://sms.benzing.com.tw/ - DIRECT/60.249.105.71 text/html
1356002215.379 13081 1.165.169.94 TCP_MISS/503 4652 GET http://sms.benzing.com.tw/ - DIRECT/60.249.105.71 text/html
1356002215.380 19202 1.165.169.94 TCP_MISS/503 4788 GET http://sms.benzing.com.tw/ - DIRECT/60.249.105.71 text/html
1356002215.382 25000 1.165.169.94 TCP_MISS/503 4924 GET http://sms.benzing.com.tw/ - DIRECT/60.249.105.71 text/html
1356002218.386 6018 1.165.169.94 TCP_MISS/503 4921 GET http://sms2.benzing.com.tw/WebResource.axd? - DIRECT/60.249.105.71 text/html
1356002218.387 7343 1.165.169.94 TCP_MISS/503 5057 GET http://sms2.benzing.com.tw/WebResource.axd? - DIRECT/60.249.105.71 text/html
1356002218.389 7346 1.165.169.94 TCP_MISS/503 5193 GET http://sms2.benzing.com.tw/WebResource.axd? - DIRECT/60.249.105.71 text/html
1356002218.391 7349 1.165.169.94 TCP_MISS/503 5329 GET http://sms2.benzing.com.tw/WebResource.axd? - DIRECT/60.249.105.71 text/html
1356002218.392 7352 1.165.169.94 TCP_MISS/503 5465 GET http://sms2.benzing.com.tw/WebResource.axd? - DIRECT/60.249.105.71 text/html



搜尋相關Tags的文章: [ proxy ] ,
本篇文章發表於2012-12-20 19:23
目前尚無任何回覆
   

回覆
如要回應,請先登入.