Вход для пользователей

Запрет доступа по URL

Изображение пользователя Eagle.

Поднимаю в филиале sams, взял 308 ревизию. Аутентификация по NTLM. Отличие от моей конфигурации только в базе у меня 4.0, а там поставил 5.0.
Пользователей добавляет из домена, реконфигурация идет, трафик считает, но ... Не работают списки "Запрет доступа по URL". Много раз пересоздавал шаблоны с разными именами, а также разные названия списков запрета. В результате в конфиге squid нет запретов, только разрешения :(
Использую редиректор sams ...
# TAG: http_access
http_access allow _sams_47b55b6c9390a
http_access allow _sams_47b939845b492
http_access allow _sams_47bbd47b6885e

samsdaemon -d
Starting process: pid = 54778
Read SAMS configuration... Ok
Connected database: squidctrl:localhost user=sams
Connected database: squidlog:localhost user=sams
Read SAMS properties...
Cache... 0
User autentification... NTLM
Sleep time of samsdaemon... 1 second
Redirector... SAMS
SQUID log parser... diskret
User traffic cleaner... YES
Squidlog cache save... 3 month
User name recode... NO
Delay pools... ON
Domain separators... '0'
Log level... '0'
Create PDF file... NO
Ok
SQUID log parser time=1 min

Creating SAMS users list /usr/local/etc/squid/47b55b6c9390a.sams
Creating SAMS users list /usr/local/etc/squid/47b939845b492.sams
Creating SAMS users list /usr/local/etc/squid/47bbd47b6885e.sams
squid configure file: /usr/local/etc/squid/squid.conf
TAG: acl found... START
0 users found in template default (Default), create ACL
2 users found in template 47b55b6c9390a (дКЪ БЯЕУ), create ACL
1 users found in template 47b939845b492 (нЦПЮМХВЕМХЕ), create ACL
1 users found in template 47bbd47b6885e (NTLM), create ACL
TAG: acl END

TAG: http_access found... START
0 users found in the template default (Default), create access rights
2 users found in the template 47b55b6c9390a (дКЪ БЯЕУ), create access rights
1 users found in the template 47b939845b492 (нЦПЮМХВЕМХЕ), create access rights
1 users found in the template 47bbd47b6885e (NTLM), create access rights
TAG: http_access END

Самое интересное не важно какой шаблон NCSA, IP или NTLM ...

Я только не помню какая у меня ревизия и версия (кс1 :)
Могу конечно туда поставить ту версию, которая у меня щас, но хотелось бы понять в чем затык ...

Изображение пользователя Eagle.

вот результат samsredir
samsredir -d
Connected database: squidctrl:localhost user=sams
authentification: NCSA
Get SAMS users: 4 users found
0: 123 workgroup 0. 0. 0. 0 1 47b939845b492 1111111 480 - 1140 0 0 1 0
1: 3 workgroup 0. 0. 0. 0 1 47b55b6c9390a 1111111 0 - 1439 0 0 1 0
2: mehnin workgroup 0. 0. 0. 0 1 47bbd47b6885e 1111111 0 - 1439 0 0 1 0
3: squid workgroup 0. 0. 0. 0 1 47bbd47b6885e 1111111 0 - 1439 0 0 1 0

Search URL lists in the users templates: found 5 URL lists
0: 47bbd47b6885e 47b938fee0f52
1: 47bbd47b6885e porno
2: 47bbd47b6885e chat
3: 47bbd47b6885e 47bbf853edfd7
4: 47b939845b492 porno

Sorting URL lists in the users templates: found 7 URL lists
2 47bbd47b6885e chat line: 1 len: 1
1 47bbd47b6885e porno line: 2 len: 4
4 47b939845b492 porno line: 2 len: 4
0 47bbd47b6885e 47b938fee0f52 line: 6 len: 3
3 47bbd47b6885e 47bbf853edfd7 line: 9 len: 1
Found 10 URL in the SAMS URL lists
1 chat chat.ru denied
2 porno porno.ru denied
3 porno ya.ru denied
4 porno sisi.ru denied
5 porno bum.ru denied
6 47b938fee0f52 mail.ru denied
7 47b938fee0f52 rambler.ru denied
8 47b938fee0f52 isurgut.ru denied
9 47bbf853edfd7 samsung denied
http://sisi.ru -/- 123 GET
STDIN: http://sisi.ru -/- 123 GET
decode data: URL=http://sisi.ru IP=- USER=123 TYPE=GET
authentication: ncsa
Search SAMS user... 123 template: 47b939845b492
Searching to the template: 47b939845b492 URL list: porno line: 2 4
URLALLOW=0 ALLOW=0 USERDENIED=0 DENIED=0 REDIRECT=0 TIMEDENIED=0
http://sisi.ru -/- 123 GET

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".