LinuxSir.cn,穿越时空的Linuxsir!

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

squid 代理 access.log无记录

[复制链接]
发表于 2006-11-3 17:51:37 | 显示全部楼层 |阅读模式
最初是有的,后来不知怎么的就没有
---squid.conf  内容-----------------------------
http_port 8080
icp_port 0
#hierarchy_stoplist cgi-bin ?
#acl QUERY urlpath_regex cgi-bin ?
#no_cache deny QUERY
redirect_program /usr/bin/squidclam
redirect_children 15
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
refresh_pattern .gif$ 10080 100% 43200 override-expire
refresh_pattern .jpg$ 10080 100% 43200 override-expire
refresh_pattern . 960 90% 43200 reload-into-ims
cache_mem 128 MB
cache_swap_low  70
cache_swap_high 85
maximum_object_size 2048 KB
cache_dir ufs /var/cache/squid/ 1200 16 256
cache_access_log /var/cache/squid/logs/access.log
cache_log /var/cache/squid/logs/cache.log
#dns_nameservers 210.52.149.2 210.52.207.2
#dns_nameservers 210.53.31.2 210.52.149.2 202.101.103.55 222.47.62.22 211.98.4.1 218.85.157.99
acl all src 0.0.0.0/0.0.0.0
acl bt urlpath_regex \.torrents$ \.rmvb$ \.rm$ \.avi$
#acl web url_regex tk4479.com
acl SSL_ports port 443 563
acl Safe_ports port 80 21 70 53
acl Safe_ports port 443 563
# wais
acl Safe_ports port 1025-65535
# unregistered ports
acl CONNECT method CONNECT
acl camp dstdomain 192.168.1.4 192.168.1.6
always_direct allow camp
redirector_access deny SSL_ports
http_access deny bt
#http_access deny web
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
http_reply_access allow all
icp_access allow all
forwarded_for off
#
cache_effective_user squid
cache_effective_group squid
#
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
 楼主| 发表于 2006-11-13 09:40:46 | 显示全部楼层
help me!
回复 支持 反对

使用道具 举报

发表于 2006-11-13 10:50:17 | 显示全部楼层
你的Squid工作正常吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-14 14:18:21 | 显示全部楼层
工作正常,主要是用来分析网络流量
回复 支持 反对

使用道具 举报

发表于 2006-11-14 17:31:24 | 显示全部楼层
别的日志正常吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-15 10:35:36 | 显示全部楼层
cache.log的日志正常,我就记录这两个。

突然想起 有一次装了哪个流量监控软件(忘记名称了),然后根据那里吧自己的IP的流量检测去掉,然后记录就没写进去了,我的ip在linux下访问网络也没记录日志,但在windows下,这个日志有记我的访问网络的日志。。。
回复 支持 反对

使用道具 举报

发表于 2006-11-15 12:33:42 | 显示全部楼层
我用sarg的时候,没有出现过这种情况,sarg靠分析squid的日志来统计信息,要是不生成,sarg都无法工作了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-16 10:05:26 | 显示全部楼层
请问linux的网络流量监控软件有哪些
1、MTRG流量监控
2、ntop
3、bandwidthd
还有什么呢?
回复 支持 反对

使用道具 举报

发表于 2006-11-16 17:21:41 | 显示全部楼层
我还没你知道的多呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-17 15:08:15 | 显示全部楼层
hehe  ..我是google的
回复 支持 反对

使用道具 举报

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

本版积分规则

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