стоит связка pf + squid + sams + rejik
в access.log следующее
Код: Выделить всё
1355304157.316 61 10.10.10.80 TCP_MISS/504 1242 GET http://www.yandex.ru/ - FIRST_UP_PARENT/127.0.0.1 text/html
1355304157.433 60 10.10.10.80 TCP_MISS/504 1264 GET http://www.yandex.ru/favicon.ico - FIRST_UP_PARENT/127.0.0.1 text/html
1355304157.480 0 10.10.10.80 TCP_MISS/504 1424 GET http://www.yandex.ru/favicon.ico - NONE/- text/html
1355304158.783 0 10.10.10.80 TCP_MISS/504 1402 GET http://www.yandex.ru/ - NONE/- text/html
1355304159.184 0 10.10.10.80 TCP_MISS/504 1402 GET http://www.yandex.ru/ - NONE/- text/html
1355304159.423 0 10.10.10.80 TCP_MISS/504 1401 GET http://www.yandex.ru/ - NONE/- text/html
1355304159.705 0 10.10.10.80 TCP_MISS/504 1401 GET http://www.yandex.ru/ - NONE/- text/html
1355304161.199 0 10.10.10.80 TCP_MISS/504 1432 GET http://swa.mail.ru/cgi-bin/counters? - NONE/- text/html
1355304162.808 0 10.10.10.80 TCP_MISS/417 2793 POST http://s.sputnik.mail.ru/sid.818? - NONE/- text/html
Код: Выделить всё
# TAG: acl
acl _sams_4a86549974161 src "/usr/local/etc/squid/4a86549974161.sams"
acl _sams_4a86549974161_time time MTWHFAS 00:00-23:59
acl _sams_4a8654ccb144a src "/usr/local/etc/squid/4a8654ccb144a.sams"
acl _sams_4a8654ccb144a_time time MTWHFAS 00:00-23:59
acl _sams_4a86550e369ed src "/usr/local/etc/squid/4a86550e369ed.sams"
acl _sams_4a86550e369ed_time time MTWHFAS 00:00-23:59
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.10.10.0/24 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 25 # smtp
acl CONNECT method CONNECT
# TAG: http_access
http_access allow _sams_4a86549974161 _sams_4a86549974161_time
http_access allow _sams_4a8654ccb144a _sams_4a8654ccb144a_time
http_access allow _sams_4a8654ccb144a _sams_4a8654ccb144a_time _sams_4a86550e369e
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
acl denied_sites dstdomain "/usr/local/etc/squid/pravila/denied_ext.co
http_access deny denied_sites
http_access allow localnet
http_access allow localhost
# And finally deny all other access to this proxy
http_access deny to_localhost
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 3128
http_port 127.0.0.1:3128 transparent
http_port 10.10.10.1:3128 transparent
http_port 10.10.10.1:3128
http_port 10.10.10.1:80
cache_peer 127.0.0.1 parent 9000 0 no-query no-digest
cache_peer 10.10.10.1 parent 88 0 no-query