))) Уважаемые знатоки. Пишет вам Гога Салеля из далекого и холодного Камчатского края.
На текущий момент ситуация сложилась таким образом. Стоит squid25. Естесно FBSD 6.2
Ниже конфиг. Конфиг простого прозрачного прокси.
Код: Выделить всё
http_port 127.0.0.1:3128
icp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 64 MB
maximum_object_size 8092 KB
maximum_object_size_in_memory 512 KB
cache_dir ufs /usr/local/squid/cache 2048 64 256
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
cache_store_log /usr/local/squid/logs/store.log
emulate_httpd_log on
cache_mgr georgiy@mail.kamchatka.ru
visible_hostname kronzp.real.kamchatka.ru.
tcp_outgoing_address 85.28.206.3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.0/8
acl our_networks src 192.168.0.0/24
acl files url_regex -i \.wav$ \.m3u$ \.mov$ \.rar$ \.zip$ \.mp3$ \.avi$
http_access allow our_networks
http_access allow localhost
http_access deny files
http_access deny all
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_uses_host_header on
coredump_dir /usr/local/squid/cache
pid_filename /usr/local/squid/logs/squid.pid
Смотрю процесс squid
Код: Выделить всё
/home/goga/>ps ax | grep squid
626 ?? Is 0:00,00 /usr/local/sbin/squid -D
628 ?? S 0:00,13 (squid) -D (squid)
1100 p1 S+ 0:00,00 grep squid
Смотрим строки IPFW в /etc/rc.conf я целенаправленно вывел только блок по фаеру.
Настроен на OPEN так не решился пока написать свой конфиг ipwf
Код: Выделить всё
firewall_enable="YES"
firewall_type="OPEN"
firewall_logging="YES"
Далее cмотрю правила которые определяет фаер="OPEN"
Код: Выделить всё
/home/goga/>ipfw list
00050 divert 8668 ip4 from any to any via sk0
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
65000 allow ip from any to any
65535 allow ip from any to any
Код: Выделить всё
/home/goga/>ipfw show
00050 5110 1314692 divert 8668 ip4 from any to any via sk0
00100 0 0 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
65000 11695 2791501 allow ip from any to any
65535 2920 211653 allow ip from any to any
А теперь вопрос к уважаемым знатокам. ))) Если данная конфигурация верна, то squid должен писать инфу о посещении сайтов в логи находящиеся но адреcу
в файл как я понимаю "access.log"
Но логов нет. Хотя народ юзает инет.
Единственный cache.log говорит что squid запустился тогда то тогда и еще много чего.
Код: Выделить всё
2008/01/17 00:53:38| Starting Squid Cache version 2.5.STABLE14 for i386-portbld-freebsd6.2...
2008/01/17 00:53:38| Process ID 628
2008/01/17 00:53:38| With 7168 file descriptors available
2008/01/17 00:53:38| DNS Socket created at 0.0.0.0, port 49240, FD 5
2008/01/17 00:53:38| Adding nameserver 85.28.195.129 from /etc/resolv.conf
2008/01/17 00:53:38| Adding nameserver 85.28.195.130 from /etc/resolv.conf
2008/01/17 00:53:38| Unlinkd pipe opened on FD 10
2008/01/17 00:53:38| Swap maxSize 2097152 KB, estimated 161319 objects
2008/01/17 00:53:38| Target number of buckets: 8065
2008/01/17 00:53:38| Using 8192 Store buckets
2008/01/17 00:53:38| Max Mem size: 65536 KB
2008/01/17 00:53:38| Max Swap size: 2097152 KB
2008/01/17 00:53:38| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2008/01/17 00:53:38| Using Least Load store dir selection
2008/01/17 00:53:38| Set Current Directory to /usr/local/squid/cache
2008/01/17 00:53:38| Loaded Icons.
2008/01/17 00:53:38| Accepting HTTP connections at 127.0.0.1, port 3128, FD 12.
2008/01/17 00:53:38| WCCP Disabled.
2008/01/17 00:53:38| Ready to serve requests.
2008/01/17 00:53:39| Done reading /usr/local/squid/cache swaplog (0 entries)
2008/01/17 00:53:39| Finished rebuilding storage from disk.
2008/01/17 00:53:39| 0 Entries scanned
2008/01/17 00:53:39| 0 Invalid entries.
2008/01/17 00:53:39| 0 With invalid flags.
2008/01/17 00:53:39| 0 Objects loaded.
2008/01/17 00:53:39| 0 Objects expired.
2008/01/17 00:53:39| 0 Objects cancelled.
2008/01/17 00:53:39| 0 Duplicate URLs purged.
2008/01/17 00:53:39| 0 Swapfile clashes avoided.
2008/01/17 00:53:39| Took 1.3 seconds ( 0.0 objects/sec).
2008/01/17 00:53:39| Beginning Validation Procedure
2008/01/17 00:53:39| Completed Validation Procedure
2008/01/17 00:53:39| Validated 0 Entries
2008/01/17 00:53:39| store_swap_size = 0k
2008/01/17 00:53:40| storeLateRelease: released 0 objects
Остальные файлы пусты я имею ввиду
Код: Выделить всё
/usr/local/squid/logs/>ll
total 10
-rw-r--r-- 1 squid squid 0 17 янв 00:16 access.log
-rw-r--r-- 1 squid squid 7265 17 янв 00:53 cache.log
-rw-r--r-- 1 squid squid 4 17 янв 00:53 squid.pid
-rw-r--r-- 1 squid squid 0 17 янв 00:16 store.log