RHEL6下squid代理之正向代理(2)

客户机浏览器配置代理
打开浏览器internet选项选择连接中的局域网设置设置:

RHEL6下squid代理之正向代理

添加squid主机IP以及代理端口:

RHEL6下squid代理之正向代理

# tail -f /var/log/squid/access.log                 //查看代理客户机访问记录
1345532445.463    166 192.168.0.229 TCP_MISS/200 2126 GET - DIRECT/123.125.114.18 image/png
1345532445.467   3193 192.168.0.229 TCP_MISS/200 188665 GET - DIRECT/123.125.115.43image/jpeg
1345532445.869    218 192.168.0.229 TCP_MISS/200 423 GET? - DIRECT/123.125.114.18 text/html
1345532446.055    170 192.168.0.229 TCP_MISS/200 1020 GET? - DIRECT/123.125.114.18 image/jpeg
1345532446.303    515 192.168.0.229 TCP_MISS/200 3653 GET=http%3A%2F%2F%2Fgundong%2F201208%2FW020120821245142735909.jpg&fm=30- DIRECT/61.135.185.26 image/jpeg
 
查看命中率
# squidclient -p 8080 mgr:info
HTTP/1.0 200 OK
Server: squid/3.1.10
Mime-Version: 1.0
Date: Tue, 21 Aug 2012 07:12:28GMT
Content-Type: text/plain
Expires: Tue, 21 Aug 201207:12:28 GMT
Last-Modified: Tue, 21 Aug 201207:12:28 GMT
X-Cache: MISS fromlocalhost.localdomain
X-Cache-Lookup: MISS fromlocalhost.localdomain:8080
Via: 1.0 localhost.localdomain(squid/3.1.10)
Connection: close
 
Squid Object Cache: Version3.1.10
Start Time:       Tue, 21 Aug 2012 06:59:03 GMT
Current Time:  Tue, 21 Aug 2012 07:12:28 GMT
Connection information for squid:
         Numberof clients accessing cache:         2
         Numberof HTTP requests received:        130
         Numberof ICP messages received:         0
         Numberof ICP messages sent:       0
         Numberof queued ICP replies:        0
         Numberof HTCP messages received:     0
         Numberof HTCP messages sent:   0
         Requestfailure ratio:       0.01
         AverageHTTP requests per minute since start:     9.7
         AverageICP messages per minute since start:      0.0
         Selectloop called: 382483 times, 2.107 ms avg
... ...
#
取得squid运行状态信息:         squidclient -p 8080 mgr:info
取得squid内存使用情况:           squidclient -p 80mgr:mem
取得squid的磁盘使用情况:    squidclient -p 8080 mgr:diskd
查看更多:squidclient -p 8080 mgr:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/82bc03b11740501bee3e5e9421591fa3.html