免费注册 查看新帖 |

Chinaunix

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

[proxy] 用squid代理,访问网站贼慢~ [复制链接]

论坛徽章:
0
发表于 2008-01-11 16:03 |显示全部楼层
用squid代理上网,不知道什么原因,打开网页非常的慢,比如打开sohu只出头上的导航就没反应了,要等很久才出来。各位大大看看我的配置有没问题。以前一直用着,前几天系统坏了,重装后就这杨了。

squid:

  1. [root@localhost ~]# cat /etc/squid/squid.conf
  2.   http_port 8080
  3.   hierarchy_stoplist cgi-bin ?
  4.   acl QUERY urlpath_regex cgi-bin \?
  5.   no_cache deny QUERY
  6.   cache_mem 16 MB
  7.   cache_swap_low 90
  8.   cache_swap_high 95
  9.   auth_param basic children 5
  10. auth_param basic realm Squid proxy-caching web server
  11. auth_param basic credentialsttl 2 hours
  12. refresh_pattern ^ftp:           1440    20%     10080
  13. refresh_pattern ^gopher:        1440    0%      1440
  14. refresh_pattern .               0       20%     4320
  15. acl all src 0.0.0.0/0.0.0.0
  16. acl manager proto cache_object
  17. acl localhost src 127.0.0.1/255.255.255.255
  18. acl allowsites dstdomain .sohu.com .china.com .126.com .163.com .yahoo.com .tom.com .pconline.com .icbc.com.cn .zsnet.com .job001.cn .msn.com .microsoft.com .yimg.com .taobao.com .sina.com.cn .hotmail.com
  19. acl lan src 192.168.0.0/255.255.255.0
  20. acl to_localhost dst 127.0.0.0/8
  21. acl SSL_ports port 443 563
  22. acl Safe_ports port 80          # http
  23. acl Safe_ports port 21          # ftp
  24. acl Safe_ports port 443 563     # https, snews
  25. acl Safe_ports port 70          # gopher
  26. acl Safe_ports port 210         # wais
  27. acl Safe_ports port 1025-65535  # unregistered ports
  28. acl Safe_ports port 280         # http-mgmt
  29. acl Safe_ports port 488         # gss-http
  30. acl Safe_ports port 591         # filemaker
  31. acl Safe_ports port 777         # multiling http
  32. acl CONNECT method CONNECT
  33. http_access allow manager localhost
  34. http_access deny manager
  35. http_access allow lan
  36. http_access deny !Safe_ports
  37. http_access deny CONNECT !SSL_ports
  38. http_access allow localhost
  39. http_access deny !allowsites
  40. http_access allow all
  41. http_reply_access allow all
  42. icp_access allow all
  43. httpd_accel_port 80
  44. httpd_accel_with_proxy on
  45. httpd_accel_uses_host_header on
  46. coredump_dir /var/spool/squid
  47. httpd_accel_host virtual

复制代码


iptables



  1. iptables -F
  2. iptables -t nat -F
  3. iptables -X
  4. iptables -t nat -X
  5. iptables -t nat -A PREROUTING -s 192.168.18.0/255.255.255.0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
  6. #####################################################


复制代码

论坛徽章:
0
发表于 2008-02-13 08:36 |显示全部楼层
我遇到了类似的事情,有没有解决方法啊

论坛徽章:
0
发表于 2008-02-26 10:46 |显示全部楼层
squidclient -p 3128 mgr:info
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP