URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID12
Нить номер: 2882
[ Назад ]

Исходное сообщение
"ОТ КУДА ОН ЭТО БЕРЕТ"

Отправлено formatc , 01-Фев-05 10:28 
Есть FReeBSD 5.2.1 SQUID 2.5. решил написать свои правила (пытаюсь разобраться в настройках) вроде грузится в процессах он по крайней мере есть.
Cache.log:
2005/02/01 09:51:26| Starting Squid Cache version 2.5.STABLE3 for i386-portbld-freebsd5.2.1...
2005/02/01 09:51:26| Process ID 16868
2005/02/01 09:51:26| With 3578 file descriptors available
2005/02/01 09:51:26| Performing DNS Tests...
2005/02/01 09:51:26| Successful DNS name lookup tests...
2005/02/01 09:51:26| DNS Socket created at 0.0.0.0, port 49238, FD 4
2005/02/01 09:51:26| Adding nameserver 10.0.0.50 from /etc/resolv.conf
2005/02/01 09:51:26| Adding nameserver 212.46.0.3 from /etc/resolv.conf
2005/02/01 09:51:26| Adding nameserver 193.138.70.2 from /etc/resolv.conf
2005/02/01 09:51:26| Unlinkd pipe opened on FD 9
2005/02/01 09:51:26| Swap maxSize 102400 KB, estimated 7876 objects
2005/02/01 09:51:26| Target number of buckets: 393
2005/02/01 09:51:26| Using 8192 Store buckets
2005/02/01 09:51:26| Max Mem  size: 8192 KB
2005/02/01 09:51:26| Max Swap size: 102400 KB
2005/02/01 09:51:26| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2005/02/01 09:51:26| Using Least Load store dir selection
2005/02/01 09:51:26| Current Directory is /root
2005/02/01 09:51:26| Loaded Icons.
2005/02/01 09:51:26| Accepting HTTP connections at 10.0.1.1, port 3128, FD 10.
2005/02/01 09:51:26| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2005/02/01 09:51:26| WCCP Disabled.
2005/02/01 09:51:26| Ready to serve requests.
2005/02/01 09:51:32| Done scanning /usr/local/squid/cache swaplog (0 entries)
2005/02/01 09:51:32| Finished rebuilding storage from disk.
2005/02/01 09:51:32|         0 Entries scanned
2005/02/01 09:51:32|         0 Invalid entries.
2005/02/01 09:51:32|         0 With invalid flags.
2005/02/01 09:51:32|         0 Objects loaded.
2005/02/01 09:51:32|         0 Objects expired.
2005/02/01 09:51:32|         0 Objects cancelled.
2005/02/01 09:51:32|         0 Duplicate URLs purged.
2005/02/01 09:51:32|         0 Swapfile clashes avoided.
2005/02/01 09:51:32|   Took 5.4 seconds (   0.0 objects/sec).
2005/02/01 09:51:32| Beginning Validation Procedure
2005/02/01 09:51:32|   Completed Validation Procedure
2005/02/01 09:51:32|   Validated 0 Entries
2005/02/01 09:51:32|   store_swap_size = 0k
2005/02/01 09:51:32| storeLateRelease: released 0 objects

/usr/local/etc/squid/squid.conf:

acl LocalNet src 10.0.1.0/24
acl denied_ips src "/usr/local/etc/squid/denied_ips"
acl vip_users src "/usr/local/etc/squid/vip_users"
acl allowed_users src "/usr/local/ets/squid/allowed_users"
acl denied_urls url_regex src "/usr/local/etc/squid/denied_urls"
acl media urlpath_regex -i \.mp3$ \.asf$ \.wav$ \.wma$ \.avi$ \.mpg$

http_port 10.0.1.1:3128
http_access allow vip_users
http_access deny denied_ips
http_access deny LocalNet denied_urls
http_access deny LocalNet media
http_access allow allowed_users
http_access deny !allowed_users
http_access deny LocalNet

но при запуске squid stop (start) пишет:
2005/02/01 10:17:22| strtokFile: /usr/local/ets/squid/allowed_users not found
2005/02/01 10:17:22| aclParseAclLine: IGNORING invalid ACL: acl allowed_users src "/usr/local/ets/squid/allowed_users"
2005/02/01 10:17:22| squid.conf line 13: http_access allow allowed_users
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'allowed_users' not found.
2005/02/01 10:17:22| squid.conf line 13: http_access allow allowed_users
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| squid.conf line 14: http_access deny !allowed_users
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'allowed_users' not found.
2005/02/01 10:17:22| squid.conf line 14: http_access deny !allowed_users
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| squid.conf line 17: http_reply_access allow all
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
2005/02/01 10:17:22| squid.conf line 17: http_reply_access allow all
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| squid.conf line 18: icp_access deny all
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
2005/02/01 10:17:22| squid.conf line 18: icp_access deny all
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| squid.conf line 19: ident_lookup_access deny all
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
2005/02/01 10:17:22| squid.conf line 19: ident_lookup_access deny all
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| squid.conf line 20: reply_body_max_size 0 allow all
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
2005/02/01 10:17:22| squid.conf line 20: reply_body_max_size 0 allow all
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| Squid is already running!  Process ID 16868

не пойму никак чего он хочет :(


Содержание

Сообщения в этом обсуждении
"ОТ КУДА ОН ЭТО БЕРЕТ"
Отправлено Stir , 01-Фев-05 14:29 

>acl allowed_users src "/usr/local/ets/squid/allowed_users"
                                 ^^^^^^^^
Должно быть наверное так

/usr/local/etc/squid/allowed_users


"ОТ КУДА ОН ЭТО БЕРЕТ"
Отправлено formatc , 01-Фев-05 18:11 
>
>>acl allowed_users src "/usr/local/ets/squid/allowed_users"
>            
>          
>          ^^^^^^^^
>
>Должно быть наверное так
>
>/usr/local/etc/squid/allowed_users

  не понял...


"ОТ КУДА ОН ЭТО БЕРЕТ"
Отправлено Stir , 01-Фев-05 20:01 
>>
>>>acl allowed_users src "/usr/local/ets/squid/allowed_users"
>>            
>>          
>>          ^^^^^^^^
>>
>>Должно быть наверное так
>>
>>/usr/local/etc/squid/allowed_users
>
>  не понял...
У тебя в пути ошибка etS, а должно быть etC
Squid тебе об этом и говорит

2005/02/01 10:17:22| strtokFile: /usr/local/ets/squid/allowed_users not found
2005/02/01 10:17:22| aclParseAclLine: IGNORING invalid ACL: acl allowed_users2005/02/01 10:17:22| strtokFile: /usr/local/ets/squid/allowed_users not found
2005/02/01 10:17:22| aclParseAclLine: IGNORING invalid ACL: acl allowed_users



"ОТ КУДА ОН ЭТО БЕРЕТ"
Отправлено formatc , 02-Фев-05 09:10 
>>>
>>>>acl allowed_users src "/usr/local/ets/squid/allowed_users"
>>>            
>>>          
>>>          ^^^^^^^^
>>>
>>>Должно быть наверное так
>>>
>>>/usr/local/etc/squid/allowed_users
>>
>>  не понял...
>У тебя в пути ошибка etS, а должно быть etC
>Squid тебе об этом и говорит
>
>2005/02/01 10:17:22| strtokFile: /usr/local/ets/squid/allowed_users not found
>2005/02/01 10:17:22| aclParseAclLine: IGNORING invalid ACL: acl allowed_users2005/02/01 10:17:22| strtokFile: /usr/local/ets/squid/allowed_users not
>found
>2005/02/01 10:17:22| aclParseAclLine: IGNORING invalid ACL: acl allowed_users

спасибо.... Слона-то я и не заметил :)
а не подскажете от куда это взялось

2005/02/01 10:17:22| squid.conf line 17: http_reply_access allow all
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
2005/02/01 10:17:22| squid.conf line 17: http_reply_access allow all
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| squid.conf line 18: icp_access deny all
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
2005/02/01 10:17:22| squid.conf line 18: icp_access deny all
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| squid.conf line 19: ident_lookup_access deny all
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
2005/02/01 10:17:22| squid.conf line 19: ident_lookup_access deny all
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
2005/02/01 10:17:22| squid.conf line 20: reply_body_max_size 0 allow all
2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
2005/02/01 10:17:22| squid.conf line 20: reply_body_max_size 0 allow all
2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping

этих правил у меня в конфиге вообще нет


"ОТ КУДА ОН ЭТО БЕРЕТ"
Отправлено Stir , 07-Фев-05 21:00 
>спасибо.... Слона-то я и не заметил :)
>а не подскажете от куда это взялось
>
>2005/02/01 10:17:22| squid.conf line 17: http_reply_access allow all
>2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
>2005/02/01 10:17:22| squid.conf line 17: http_reply_access allow all
>2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
>2005/02/01 10:17:22| squid.conf line 18: icp_access deny all
>2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
>2005/02/01 10:17:22| squid.conf line 18: icp_access deny all
>2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
>2005/02/01 10:17:22| squid.conf line 19: ident_lookup_access deny all
>2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
>2005/02/01 10:17:22| squid.conf line 19: ident_lookup_access deny all
>2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
>2005/02/01 10:17:22| squid.conf line 20: reply_body_max_size 0 allow all
>2005/02/01 10:17:22| aclParseAccessLine: ACL name 'all' not found.
>2005/02/01 10:17:22| squid.conf line 20: reply_body_max_size 0 allow all
>2005/02/01 10:17:22| aclParseAccessLine: Access line contains no ACL's, skipping
>
>этих правил у меня в конфиге вообще нет

В конфиге должен был быть дефолтовый аксель
acl all src 0.0.0.0/0.0.0.0
Ты его случайно не удалил?