LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 946|回复: 3

squid 2.6的问题,运行,但是不干活?!

[复制链接]
发表于 2007-1-13 12:31:00 | 显示全部楼层 |阅读模式

  1. http_port 3128

  2. #Turn logging to it's lowest level

  3. debug_options ALL,1

  4. #defines a group (or Access Control List) that includes all IP addresses

  5. acl all src 0.0.0.0/0.0.0.0

  6. #define RAM used

  7. cache_mem 32 MB

  8. #defines the cache size
  9. cache_dir ufs /home/marco/cache 100 16 256

  10. #allow all sites to use connect to us via HTTP

  11. http_access allow all

  12. #allow all sites to use us as a sibling

  13. icp_access allow all

  14. #test the following sites to check that we are connected

  15. dns_testnames sina.com

  16. #run as the squid user

  17. cache_effective_user marco marco
复制代码


这是我的配置文件,用 ./squid -CNd1启动后,出现:

  1. 2007/01/12 20:51:46| Starting Squid Cache version 2.6.STABLE6 for i686-pc-linux-gnu...
  2. 2007/01/12 20:51:46| Process ID 22456
  3. 2007/01/12 20:51:46| With 1024 file descriptors available
  4. 2007/01/12 20:51:46| Using epoll for the IO loop
  5. 2007/01/12 20:51:46| Performing DNS Tests...
  6. 2007/01/12 20:51:46| Successful DNS name lookup tests...
  7. 2007/01/12 20:51:46| DNS Socket created at 0.0.0.0, port 60481, FD 5
  8. 2007/01/12 20:51:46| Adding nameserver 208.109.96.1 from /etc/resolv.conf
  9. 2007/01/12 20:51:46| Adding nameserver 208.109.96.2 from /etc/resolv.conf
  10. 2007/01/12 20:51:46| Unlinkd pipe opened on FD 9
  11. 2007/01/12 20:51:46| Swap maxSize 102400 KB, estimated 7876 objects
  12. 2007/01/12 20:51:46| Target number of buckets: 393
  13. 2007/01/12 20:51:46| Using 8192 Store buckets
  14. 2007/01/12 20:51:46| Max Mem  size: 32768 KB
  15. 2007/01/12 20:51:46| Max Swap size: 102400 KB
  16. 2007/01/12 20:51:46| Rebuilding storage in /home/marco/cache (CLEAN)
  17. 2007/01/12 20:51:46| Using Least Load store dir selection
  18. 2007/01/12 20:51:46| Current Directory is /usr/local/squid/sbin
  19. 2007/01/12 20:51:46| Loaded Icons.
  20. 2007/01/12 20:51:46| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 11.
  21. 2007/01/12 20:51:46| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
  22. 2007/01/12 20:51:46| WCCP Disabled.
  23. 2007/01/12 20:51:46| Ready to serve requests.
  24. 2007/01/12 20:51:46| Done reading /home/marco/cache swaplog (0 entries)
  25. 2007/01/12 20:51:46| Finished rebuilding storage from disk.
  26. 2007/01/12 20:51:46|         0 Entries scanned
  27. 2007/01/12 20:51:46|         0 Invalid entries.
  28. 2007/01/12 20:51:46|         0 With invalid flags.
  29. 2007/01/12 20:51:46|         0 Objects loaded.
  30. 2007/01/12 20:51:46|         0 Objects expired.
  31. 2007/01/12 20:51:46|         0 Objects cancelled.
  32. 2007/01/12 20:51:46|         0 Duplicate URLs purged.
  33. 2007/01/12 20:51:46|         0 Swapfile clashes avoided.
  34. 2007/01/12 20:51:46|   Took 0.3 seconds (   0.0 objects/sec).
  35. 2007/01/12 20:51:46| Beginning Validation Procedure
  36. 2007/01/12 20:51:46|   Completed Validation Procedure
  37. 2007/01/12 20:51:46|   Validated 0 Entries
  38. 2007/01/12 20:51:46|   store_swap_size = 0k
  39. 2007/01/12 20:51:47| storeLateRelease: released 0 objects
复制代码


用squid -k check 无输出,

浏览器配置好后,无法使用代理,请问是怎么搞的?
 楼主| 发表于 2007-1-13 15:30:00 | 显示全部楼层
touch it!

Firewall filtered....
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-13 15:54:24 | 显示全部楼层

squid 2.6的问题,终于干活了,但是……

squid架好了!

多数网站可以了,我通过代理访问工作用的一个网站的9527端口(一个trac system),也是可以的,
但是访问同一个网站的8080端口却有问题(不用代理是可以的!),我的代理服务器提示:


  1. The following error was encountered:

  2.     * Connection to 58.246.69.230 Failed

  3. The system returned:

  4.     (113) No route to host

  5. The remote host or network may be down. Please try the request again.

  6. Your cache administrator is webmaster.
复制代码


请教下,怎么搞的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-14 12:36:22 | 显示全部楼层
touch it!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表