LinuxForum.Fans
Тема

Пустые логи сквида

Автор: maxim_k 1 сообщений 1711 просмотров
#349427

Привет всем.
Помогите проблемой.
Squid настроен в режиме прозрачный прокси.
вот его конфиг:

Показать
acl _sams_508639753313f src "/etc/squid/508639753313f.sams"
acl _sams_508639753313f_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 0.0.0.0/32
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow _sams_508639753313f _sams_508639753313f_time
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
delay_pools 1
delay_class 1 2
delay_access 1 allow _sams_508639753313f
delay_access 1 deny all
delay_parameters 1 524288/524288 524288/524288
hosts_file /etc/hosts
coredump_dir /var/spool/squid

права на access.log стоят 777.
сам сквид работает.
вот содержимое файла /var/log/squid/cache/log

Показать
2013/11/15 06:25:32| storeDirWriteCleanLogs: Starting...
2013/11/15 06:25:32| Finished. Wrote 0 entries.
2013/11/15 06:25:32| Took 0.0 seconds ( 0.0 entries/sec).
2013/11/15 06:25:32| logfileRotate: /var/log/squid/store.log
2013/11/15 06:25:32| logfileRotate (stdio): /var/log/squid/store.log
2013/11/15 06:25:32| logfileRotate: /var/log/squid/access.log
2013/11/15 06:25:32| logfileRotate (stdio): /var/log/squid/access.log
2013/11/15 11:01:26| Reconfiguring Squid Cache (version 2.7.STABLE9)...
2013/11/15 11:01:26| FD 13 Closing HTTP connection
2013/11/15 11:01:26| FD 14 Closing ICP connection
2013/11/15 11:01:26| Closing unlinkd pipe on FD 11
2013/11/15 11:01:26| logfileClose: closing log /var/log/squid/store.log
2013/11/15 11:01:26| logfileClose: closing log /var/log/squid/access.log
2013/11/15 11:01:26| Including Configuration File: /etc/squid/squid.conf (depth 0)
2013/11/15 11:01:26| logfileOpen: opening log /var/log/squid/access.log
2013/11/15 11:01:26| logfileOpen: opening log /var/log/squid/store.log
2013/11/15 11:01:26| User-Agent logging is disabled.
2013/11/15 11:01:26| Referer logging is disabled.
2013/11/15 11:01:26| DNS Socket created at 0.0.0.0, port 49762, FD 8
2013/11/15 11:01:26| Adding nameserver 192.168.11.99 from /etc/resolv.conf
2013/11/15 11:01:26| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2013/11/15 11:01:26| Unlinkd pipe opened on FD 12
2013/11/15 11:01:26| Accepting transparently proxied HTTP connections at 0.0.0.0, port 3128, FD 10.
2013/11/15 11:01:26| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2013/11/15 11:01:26| HTCP Disabled.
2013/11/15 11:01:26| WCCP Disabled.
2013/11/15 11:01:26| Loaded Icons.
2013/11/15 11:01:26| Ready to serve requests.
2013/11/15 11:13:23| Reconfiguring Squid Cache (version 2.7.STABLE9)...
2013/11/15 11:13:23| FD 10 Closing HTTP connection
2013/11/15 11:13:23| FD 11 Closing ICP connection
2013/11/15 11:13:23| Closing unlinkd pipe on FD 12
2013/11/15 11:13:23| logfileClose: closing log /var/log/squid/store.log
2013/11/15 11:13:23| logfileClose: closing log /var/log/squid/access.log
2013/11/15 11:13:23| Including Configuration File: /etc/squid/squid.conf (depth 0)
2013/11/15 11:13:23| logfileOpen: opening log /var/log/squid/access.log
2013/11/15 11:13:23| logfileOpen: opening log /var/log/squid/store.log
2013/11/15 11:13:23| User-Agent logging is disabled.
2013/11/15 11:13:23| Referer logging is disabled.
2013/11/15 11:13:23| DNS Socket created at 0.0.0.0, port 49818, FD 8
2013/11/15 11:13:23| Adding nameserver 192.168.11.99 from /etc/resolv.conf
2013/11/15 11:13:23| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2013/11/15 11:13:23| Unlinkd pipe opened on FD 12
2013/11/15 11:13:23| Accepting transparently proxied HTTP connections at 0.0.0.0, port 3128, FD 10.
2013/11/15 11:13:23| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2013/11/15 11:13:23| HTCP Disabled.
2013/11/15 11:13:23| WCCP Disabled.
2013/11/15 11:13:23| Loaded Icons.
2013/11/15 11:13:23| Ready to serve requests.
2013/11/15 11:18:49| Reconfiguring Squid Cache (version 2.7.STABLE9)...
2013/11/15 11:18:49| FD 10 Closing HTTP connection
2013/11/15 11:18:49| FD 11 Closing ICP connection
2013/11/15 11:18:49| Closing unlinkd pipe on FD 12
2013/11/15 11:18:49| logfileClose: closing log /var/log/squid/store.log
2013/11/15 11:18:49| logfileClose: closing log /var/log/squid/access.log
2013/11/15 11:18:49| Including Configuration File: /etc/squid/squid.conf (depth 0)
2013/11/15 11:18:49| logfileOpen: opening log /var/log/squid/access.log
2013/11/15 11:18:49| logfileOpen: opening log /var/log/squid/store.log
2013/11/15 11:18:49| User-Agent logging is disabled.
2013/11/15 11:18:49| Referer logging is disabled.
2013/11/15 11:18:49| DNS Socket created at 0.0.0.0, port 49642, FD 8
2013/11/15 11:18:49| Adding nameserver 192.168.11.99 from /etc/resolv.conf
2013/11/15 11:18:49| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2013/11/15 11:18:49| Unlinkd pipe opened on FD 12
2013/11/15 11:18:49| Accepting transparently proxied HTTP connections at 0.0.0.0, port 3128, FD 10.
2013/11/15 11:18:49| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2013/11/15 11:18:49| HTCP Disabled.
2013/11/15 11:18:49| WCCP Disabled.
2013/11/15 11:18:49| Loaded Icons.
2013/11/15 11:18:49| Ready to serve requests.

трафик завернул в iptables
$IPT -t nat -A PREROUTING -i $LAN ! -d 192.168.0.0/16 -p tcp -m multiport --dports 80,8080 -j DNAT --to-destination 192.168.223.254:3128


Но сами лога сквида пустые.
Подскажите может у кого была такая трабла или кто видит ошибку, то прошу помощи.

З.Ы. Версия squid: WELCOME TO SQUID 2.7.STABLE9


Блин сорри,
Вопрос снят, забыл открыть порт 3128... фак :(

Войдите или зарегистрируйтесь, чтобы ответить.