免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5860 | 回复: 8

[proxy] 急。在线等待。squid代理无法显示页面。 [复制链接]

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
发表于 2013-04-26 09:05 |显示全部楼层
5可用积分
用户反应,无法访问www.cib.com.cn 首页。但不使用squid代理能够正常登入兴业银行首页。
当前squid的版本为:squid-2.5.STABLE14,squid.conf配置没有问题。
使用curl进行测试:
$ curl -I -x 10.86.64.1:3128 http://www.cib.com.cn
HTTP/1.0 302 Moved Temporarily
Date: Sun, 21 Apr 2013 20:36:12 GMT
Server: Apache
Location: http://www.cib.com.cn/netbank/cn/index.html
Content-Length: 227
Content-Type: text/html; charset=iso-8859-1
Age: 38373
X-Via: 1.1 fysx15:80 (Cdn Cache Server V2.0), 1.1 fjnd41:9090 (Cdn Cache Server V2.0)
X-Cache: MISS from blue.it
Proxy-Connection: keep-alive

$ curl -I -x 10.86.64.1:3128 http://www.cib.com.cn/netbank/cn/index.html
HTTP/1.0 200 OK
Date: Sun, 21 Apr 2013 19:51:32 GMT
Server: Apache
Last-Modified: Sun, 21 Apr 2013 06:29:39 GMT
ETag: "a1c2-14d3c-13a23ac0"
Accept-Ranges: bytes
Content-Length: 85308
Content-Type: text/html
Age: 41067
X-Via: 1.1 fjnd41:9090 (Cdn Cache Server V2.0)
X-Cache: MISS from blue.it
Proxy-Connection: keep-alive

发帖无果,在虚拟机上实验:
首先配置一样的RHEL 5,squid版本为squid/2.5.STABLE14进行实验:
安装配置与原服务器大致一样。结果与之前相同,都无法访问。提取access.log数据:
1366867167.251     30 fzwks0855.casix.net TCP_MISS/302 553 GET http://www.cib.com.cn/ - DIRECT/220.161.209.58 text/html
1366867171.574   1005 fzwks0855.casix.net TCP_MISS/302 553 GET http://www.cib.com.cn/ - DIRECT/220.161.209.58 text/html
1366867197.051  25476 fzwks0855.casix.net TCP_REFRESH_HIT/200 16453 GET http://www.cib.com.cn/netbank/cn/index.html - DIRECT/220.161.209.58 te
xt/html
1366867197.051  29799 fzwks0855.casix.net TCP_MISS/200 16466 GET http://www.cib.com.cn/netbank/cn/index.html - DIRECT/220.161.209.58 text/html
1366867313.178     15 android_18e6b58f5dc4061e.casix.net TCP_MISS/302 326 HEAD http://www.cib.com.cn - DIRECT/220.161.209.58 text/html
1366867339.395      8 android_18e6b58f5dc4061e.casix.net TCP_CLIENT_REFRESH_MISS/200 335 HEAD http://www.cib.com.cn/netbank/cn/index.html - DI
RECT/220.161.209.58 text/html
1366867393.603  26992 fzwks0855.casix.net TCP_MISS/200 16461 GET http://www.cib.com.cn/netbank/cn/index.html - NONE/- text/html
1366867393.603  27618 fzwks0855.casix.net TCP_REFRESH_HIT/200 16453 GET http://www.cib.com.cn/netbank/cn/index.html - DIRECT/220.161.209.58 te
xt/html
1366867393.603  29286 fzwks0855.casix.net TCP_MISS/200 16466 GET http://www.cib.com.cn/netbank/cn/index.html - DIRECT/220.161.209.58 text/html


然后尝试新squid版本:squid-3.1.9进行实验:
安装配置与原服务器大致一样。
访问www.cib.com.cn 成功,从access.log中提取数据如下:
1366793692.315     22 fzwks0855 TCP_MISS/302 579 GET http://www.cib.com.cn/ - DIRECT/220.161.209.58 text/html
1366793692.333     15 fzwks0855 TCP_REFRESH_UNMODIFIED/200 16388 GET http://www.cib.com.cn/netbank/cn/index.html - DIRECT/220.161.209.58 text/
html
1366793692.388      0 fzwks0855 TCP_HIT/200 1294 GET http://www.cib.com.cn/netbank/cn/resources/css/2010/base.css - NONE/- text/css
1366793692.396      0 fzwks0855 TCP_HIT/200 3057 GET http://www.cib.com.cn/netbank/cn/resources/css/2010/homepage.css - NONE/- text/css
1366793692.442      1 fzwks0855 TCP_HIT/200 5750 GET http://www.cib.com.cn/netbank/cn/resources/js/util.js - NONE/- application/javascript
1366793692.743      0 fzwks0855 TCP_HIT/200 469 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/news.gif - NONE/- image/gif
1366793692.746      1 fzwks0855 TCP_HIT/200 11460 GET http://www.cib.com.cn/netbank/cn ... s/2010/cib-logo.jpg - NONE/- image/jpeg
1366793692.754      1 fzwks0855 TCP_HIT/200 3074 GET http://www.cib.com.cn/netbank/cn/customer/images/2010/retail1.jpg - NONE/- image/jpeg
1366793692.758      0 fzwks0855 TCP_HIT/200 3732 GET http://www.cib.com.cn/netbank/cn/customer/images/2010/retail2.gif - NONE/- image/gif
1366793692.786      1 fzwks0855 TCP_HIT/200 3061 GET http://www.cib.com.cn/netbank/cn/customer/images/2010/organ1.jpg - NONE/- image/jpeg
1366793692.807      1 fzwks0855 TCP_HIT/200 3899 GET http://www.cib.com.cn/netbank/cn ... s/2010/finance1.gif - NONE/- image/gif
1366793692.810      0 fzwks0855 TCP_HIT/200 3744 GET http://www.cib.com.cn/netbank/cn ... s/2010/finance2.gif - NONE/- image/gif
1366793692.822      5 fzwks0855 TCP_HIT/200 14472 GET http://www.cib.com.cn/netbank/cn ... s/2010/bg-hp-cn.png - NONE/- image/png
1366793692.824      1 fzwks0855 TCP_HIT/200 5063 GET http://www.cib.com.cn/netbank/cn/customer/images/2010/organ2.gif - NONE/- image/gif
1366793692.841      1 fzwks0855 TCP_HIT/200 5656 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/xyr.jpg - NONE/- image/jpeg
1366793692.843      1 fzwks0855 TCP_HIT/200 8467 GET http://www.cib.com.cn/netbank/cn/customer/images/cjzx_1.gif - NONE/- image/gif
1366793692.870    150 fzwks0855 TCP_MISS/200 459 GET http://www.google-analytics.com/__utm.gif? - DIRECT/74.125.31.138 image/gif
1366793692.897      6 fzwks0855 TCP_HIT/200 8856 GET http://www.cib.com.cn/netbank/cn/customer/images/cjzx_2.jpg - NONE/- image/jpeg
1366793692.901     10 fzwks0855 TCP_HIT/200 31649 GET http://www.cib.com.cn/netbank/cn ... 2010/top_banner.swf - NONE/- application
/x-shockwave-flash
1366793692.920      5 fzwks0855 TCP_HIT/200 32568 GET http://www.cib.com.cn/netbank/cn ... 2010/tonglan1_1.swf - NONE/- application
/x-shockwave-flash
1366793692.927     19 fzwks0855 TCP_REFRESH_MODIFIED/200 1367 GET http://finance.cib.com.cn/index/left_hqing.htm - DIRECT/220.161.209.58 text/
html
1366793692.954      4 fzwks0855 TCP_HIT/200 6499 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/zrrs.jpg - NONE/- image/jpeg
1366793692.961      0 fzwks0855 TCP_HIT/200 1739 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/top_wb.gif - NONE/- image/gif
1366793692.972      1 fzwks0855 TCP_HIT/200 1279 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/bg-hp1.png - NONE/- image/png
1366793692.972      4 fzwks0855 TCP_HIT/200 23201 GET http://www.cib.com.cn/netbank/cn ... /2010/tonglan_2.swf - NONE/- application/
x-shockwave-flash
1366793693.005      0 fzwks0855 TCP_HIT/200 528 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/bg-hp3.gif - NONE/- image/gif
1366793693.010      0 fzwks0855 TCP_HIT/200 2449 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/bg-hp4.png - NONE/- image/png
1366793693.015      0 fzwks0855 TCP_HIT/200 813 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/bg-hp2.png - NONE/- image/png
1366793693.074      2 fzwks0855 TCP_HIT/200 23667 GET http://www.cib.com.cn/netbank/cn ... /2010/tonglan_3.swf - NONE/- application/
x-shockwave-flash
1366793693.111      2 fzwks0855 TCP_HIT/200 19966 GET http://www.cib.com.cn/netbank/cn ... igou_guanggao_3.swf - NONE/- appli
cation/x-shockwave-flash
1366793693.357      0 fzwks0855 TCP_HIT/200 3078 GET http://finance.cib.com.cn/include/fin_style.css - NONE/- text/css
1366793693.358      3 fzwks0855 TCP_HIT/200 12364 GET http://www.cib.com.cn/netbank/cn ... igou_guanggao_1.swf - NONE/- appli
cation/x-shockwave-flash
1366793693.400      1 fzwks0855 TCP_HIT/200 11011 GET http://www.cib.com.cn/netbank/cn/resources/hdp/focus.swf - NONE/- application/x-shockwav
e-flash
1366793693.443      7 fzwks0855 TCP_REFRESH_UNMODIFIED/200 1030 GET http://finance.cib.com.cn/index/news.htm - DIRECT/220.161.209.58 text/html
1366793693.505      2 fzwks0855 TCP_HIT/200 20984 GET http://www.cib.com.cn/netbank/cn ... 010/jrsc_bottom.swf - NONE/- applicatio
n/x-shockwave-flash
1366793693.573      1 fzwks0855 TCP_HIT/200 10020 GET http://content.9588.com/app/html/3123/search.html - NONE/- text/html
1366793693.582      2 fzwks0855 TCP_HIT/200 22949 GET http://www.cib.com.cn/netbank/cn/customer/flash/2010/online.swf - NONE/- application/x-s
hockwave-flash
1366793693.591      4 fzwks0855 TCP_HIT/200 44463 GET http://www.cib.com.cn/netbank/cn/customer/flash/2010/yjh.swf - NONE/- application/x-shoc
kwave-flash
1366793693.632      2 fzwks0855 TCP_HIT/200 21114 GET http://www.cib.com.cn/netbank/cn/customer/flash/2010/jrsc_top.swf - NONE/- application/x
-shockwave-flash
1366793693.677      0 fzwks0855 TCP_HIT/200 3433 GET http://fortune.cib.com.cn/include/fin_style.css - NONE/- text/css
1366793693.684      1 fzwks0855 TCP_HIT/200 11011 GET http://www.cib.com.cn/netbank/cn/resources/hdp/focus.swf - NONE/- application/x-shockwav
e-flash
1366793693.775     18 fzwks0855 TCP_REFRESH_UNMODIFIED/200 2167 GET http://finance.cib.com.cn/insert/index_cib_model.htm - DIRECT/220.161.209.
58 text/html
1366793693.785      3 fzwks0855 TCP_HIT/200 37486 GET http://www.cib.com.cn/netbank/cn ... igou_guanggao_2.swf - NONE/- appli
cation/x-shockwave-flash
1366793693.842      2 fzwks0855 TCP_HIT/200 19658 GET http://finance.cib.com.cn/include/check.js - NONE/- -
1366793693.852      1 fzwks0855 TCP_HIT/200 9970 GET http://finance.cib.com.cn/include/utility.js - NONE/- -
1366793693.883      0 fzwks0855 TCP_HIT/200 1848 GET http://finance.cib.com.cn/include/menu.js - NONE/- -
1366793693.898      0 fzwks0855 TCP_HIT/200 487 GET http://finance.cib.com.cn/images/logo/1_49.gif - NONE/- image/gif
1366793693.912      0 fzwks0855 TCP_HIT/200 1802 GET http://finance.cib.com.cn/include/css2.css - NONE/- text/css
1366793693.925      1 fzwks0855 TCP_HIT/200 2333 GET http://fortune.cib.com.cn/include/css.css - NONE/- text/css
1366793693.929      1 fzwks0855 TCP_HIT/200 4514 GET http://finance.cib.com.cn/include/fin_econ.css - NONE/- text/css
1366793693.963      1 fzwks0855 TCP_HIT/200 9207 GET http://finance.cib.com.cn/include/list.js - NONE/- -
1366793693.976      1 fzwks0855 TCP_HIT/200 10047 GET http://www.cib.com.cn/netbank/cn/resources/hdp/honor_2.jpg - NONE/- image/jpeg
1366793693.989      1 fzwks0855 TCP_HIT/200 10794 GET http://www.cib.com.cn/netbank/cn/resources/hdp/honor_4.jpg - NONE/- image/jpeg
1366793693.997      1 fzwks0855 TCP_HIT/200 7896 GET http://www.cib.com.cn/netbank/cn/resources/hdp/honor_3.jpg - NONE/- image/jpeg
1366793694.140     14 fzwks0855 TCP_HIT/200 74204 GET http://content.9588.com/js/jquery-1.4.2.min.js? - NONE/- application/x-javascript
1366793694.168      1 fzwks0855 TCP_HIT/200 8285 GET http://www.cib.com.cn/netbank/cn/resources/hdp/honor_5.jpg - NONE/- image/jpeg
1366793694.172      1 fzwks0855 TCP_HIT/200 7372 GET http://content.9588.com/app/js/common.pack.js? - NONE/- application/x-javascript
1366793694.178      1 fzwks0855 TCP_HIT/200 14821 GET http://content.9588.com/app/js/calendar.js? - NONE/- application/x-javascript
1366793694.196      3 fzwks0855 TCP_HIT/200 18537 GET http://www.cib.com.cn/netbank/cn/resources/hdp/20100914.jpg - NONE/- image/jpeg
1366793694.240      5 fzwks0855 TCP_HIT/200 15657 GET http://www.cib.com.cn/netbank/cn/resources/hdp/20121217.jpg - NONE/- image/jpeg
1366793694.247      3 fzwks0855 TCP_HIT/200 20382 GET http://www.cib.com.cn/netbank/cn/resources/hdp/20121231.jpg - NONE/- image/jpeg
1366793694.250      1 fzwks0855 TCP_HIT/200 6942 GET http://www.cib.com.cn/netbank/cn/resources/hdp/honor_1.jpg - NONE/- image/jpeg
1366793694.275      7 fzwks0855 TCP_HIT/200 22285 GET http://www.cib.com.cn/netbank/cn/resources/hdp/007.jpg - NONE/- image/jpeg
1366793694.323      5 fzwks0855 TCP_HIT/200 23247 GET http://www.cib.com.cn/netbank/cn/resources/hdp/20130222.jpg - NONE/- image/jpeg
1366793694.327      4 fzwks0855 TCP_HIT/200 15593 GET http://www.cib.com.cn/netbank/cn/resources/hdp/20120709.jpg - NONE/- image/jpeg
1366793694.331      3 fzwks0855 TCP_HIT/200 14664 GET http://www.cib.com.cn/netbank/cn/resources/hdp/20130304.jpg - NONE/- image/jpeg
1366793694.339      3 fzwks0855 TCP_HIT/200 450 GET http://finance.cib.com.cn/images/up1.gif - NONE/- image/gif
1366793694.384      1 fzwks0855 TCP_HIT/200 2070 GET http://content.9588.com/app/css/3123.css? - NONE/- text/css
1366793694.423      1 fzwks0855 TCP_HIT/200 2196 GET http://img.9588.com/app/images/3185/SearchBox_bg.gif - NONE/- image/gif
1366793694.434      0 fzwks0855 TCP_HIT/200 450 GET http://finance.cib.com.cn/images/down1.gif - NONE/- image/gif


实验结果如上,问题曾经出现过,之前使用删除个别缓存对象后能够登入,一段时间后又无法登入,这次怎么删都无法访问。删除缓存对象语句如下:
$ /usr/local/squid/bin/squidclient -h 10.86.64.1 -p 3128 -m PURGE http://www.cib.com.cn/netbank/cn/index.html
HTTP/1.0 200 OK
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Mon, 22 Apr 2013 06:56:08 GMT
Content-Length: 0

$ /usr/local/squid/bin/squidclient -h 10.86.64.1 -p 3128 -m PURGE http://www.cib.com.cn
HTTP/1.0 404 Not Found
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Mon, 22 Apr 2013 06:56:55 GMT
Content-Length: 0


请大神赐教啊!是在不明白是什么地方出错了。

论坛徽章:
4
IT运维版块每日发帖之星
日期:2015-09-01 06:20:00IT运维版块每日发帖之星
日期:2015-10-09 06:20:00操作系统版块每日发帖之星
日期:2015-10-20 06:20:00IT运维版块每日发帖之星
日期:2015-11-03 06:20:00
发表于 2013-04-26 09:07 |显示全部楼层
加QQ1474804934 解决

论坛徽章:
0
发表于 2013-04-26 09:13 |显示全部楼层
这个好复杂,偶看了也搞不定,帮你顶一下。

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
发表于 2013-04-26 10:44 |显示全部楼层
回复 3# a-plus

哈哈。。可能是我搞的太复杂了,我只想把我做的实验都给你们看,看能不能发现些什么问题来。
   

论坛徽章:
0
发表于 2013-05-13 17:34 |显示全部楼层
本帖最后由 kkkggg 于 2013-05-13 18:05 编辑

我试了一下,
1368436539.945     31 10.0.2.6 TCP_MISS/302 573 GET http://www.cib.com.cn/ - HIER_DIRECT/61.146.152.57 text/html
1368436540.251     49 10.0.2.6 TCP_MISS/200 16287 GET http://www.cib.com.cn/netbank/cn/index.html - HIER_DIRECT/61.146.152.57 text/html
1368436540.721     18 10.0.2.6 TCP_MISS/200 1332 GET http://www.cib.com.cn/netbank/cn/resources/css/2010/base.css - HIER_DIRECT/61.146.152.57 text/css
1368436540.748     33 10.0.2.6 TCP_MISS/200 3108 GET http://www.cib.com.cn/netbank/cn/resources/css/2010/homepage.css - HIER_DIRECT/61.146.152.57 text/css
1368436540.870    147 10.0.2.6 TCP_MISS/200 5743 GET http://www.cib.com.cn/netbank/cn/resources/js/util.js - HIER_DIRECT/61.146.152.57 application/javascript
1368436540.896     16 10.0.2.6 TCP_MISS/200 462 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/news.gif - HIER_DIRECT/61.146.152.57 image/gif
1368436540.933     40 10.0.2.6 TCP_MISS/200 3054 GET http://www.cib.com.cn/netbank/cn/customer/images/2010/organ1.jpg - HIER_DIRECT/61.146.152.57 image/jpeg

1368437779.168      2 10.0.2.6 TCP_HIT/200 16233 GET http://www.cib.com.cn/netbank/cn/index.html - HIER_NONE/- text/html
1368437779.518      2 10.0.2.6 TCP_MEM_HIT/200 1335 GET http://www.cib.com.cn/netbank/cn/resources/css/2010/base.css - HIER_NONE/- text/css
1368437779.704      2 10.0.2.6 TCP_HIT/200 3098 GET http://www.cib.com.cn/netbank/cn/resources/css/2010/homepage.css - HIER_NONE/- text/css
1368437779.730      2 10.0.2.6 TCP_HIT/200 5746 GET http://www.cib.com.cn/netbank/cn/resources/js/util.js - HIER_NONE/- application/javascript
1368437779.752      1 10.0.2.6 TCP_MEM_HIT/200 465 GET http://www.cib.com.cn/netbank/cn/resources/images/2010/news.gif - HIER_NONE/- image/gif
1368437779.803      2 10.0.2.6 TCP_HIT/200 3070 GET http://www.cib.com.cn/netbank/cn/customer/images/2010/retail1.jpg - HIER_NONE/- image/jpeg
1368437779.817      2 10.0.2.6 TCP_HIT/200 3728 GET http://www.cib.com.cn/netbank/cn/customer/images/2010/retail2.gif - HIER_NONE/- image/gif

我这边是这样的。你是登录网上银行失败,还是连首页都打不开啊?
你是用的透明代理吗?如果是登录网银失败,也许网银插件用了一个使用80端口的非http连接。在iptables里设置规则,让访问那个IP地址的数据包跳过透明代理试试。

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
发表于 2013-05-14 16:07 |显示全部楼层
回复 5# kkkggg
是连首页都无法访问。用新版本的squid-3.1.9.tar就能够访问。   

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
发表于 2013-05-14 16:08 |显示全部楼层
回复 5# kkkggg

请问你squid的版本是多少啊??
   

论坛徽章:
0
发表于 2013-05-14 16:33 |显示全部楼层
本帖最后由 kkkggg 于 2013-05-14 16:39 编辑

squid 3.2.9
对了,你访问不了。页面显示什么?

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
发表于 2013-05-15 09:31 |显示全部楼层
回复 8# kkkggg

我试过3.1.2的版本,能够正常显示。貌似3.0以后的版本都可是使用。
服务器用的是2.5的比较旧,也不知道是不是版本问题。
提示:无法显示该页面
无法.jpg    
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2019中国系统架构师大会

【数字转型 架构演进】SACC2019中国系统架构师大会,7折限时优惠重磅来袭!
2019年10月31日~11月2日第11届中国系统架构师大会(SACC2019)将在北京隆重召开。四大主线并行的演讲模式,1个主会场、20个技术专场、超千人参与的会议规模,100+来自互联网、金融、制造业、电商等领域的嘉宾阵容,将为广大参会者提供一场最具价值的技术交流盛会。

限时七折期:2019年8月31日前


----------------------------------------

大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:help@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP