поставил squidGuard и выяснил проблему
после того как у пользователя заканчивается интернет, он в конфиге squidGuard.conf попадает в deny пользователей
НО сам squidGuard не перезапускается чтоб перепрочитать свой конфиг! поэтому пользователя не отрубает. подскажите что делать?
тоже самое при включение пользователя. sams отрабатывает нормально в конфигах все меняет а squidGuard и видимо любой другой редиректор не перезапускается и не перепрочитывает по новой свой конфиг.
но если сделать killall squidGuard то все начинает работать, потому что squid по новой запускает свои редиректоры и он перепрочитывает свой документ.
что? неужели придется в cron добавлять скрипет который каждую минуту убивает squidGuard? или любой другой редиректор?
в конфиге сквида прописан:
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf
подскажите что делать?
FreeBSD 7.0-RELEASE
squid Version 3.0.STABLE9
sams 1.0.3 stable
ну и так.. на всякий случай.
stat2# sams -d
Connected database: squidctrl:localhost user=sams
Connected database: squidlog:localhost user=sams
Starting process: pid = 86707
Cache 0
Reading file: start=263966 length=263966
disable user script = /usr/local/share/sams/src/script/none
Administrator address:
ISP Mb size=1048576, kb size=1024
Found 3 SAMS users
0: gubanoff ***** 0.0.0.0.0.0./0.0.0.0.0.0. 1 0 104857600 48e2d3e78b12f ntlm
1: klimov ****** 0.0.0.0.0.0./0.0.0.0.0.0. -1 18621573 20971520 48e2d3e7891f1 ntlm
2: salnikov ***** 0.0.0.0.0.0./0.0.0.0.0.0. 1 0 104857600 48e2d3e78a195 ntlm
Found 2 localhosts
*****
192.168.0.3 >> 192.168.0.3/255.255.255.255
2. SELECT count(*) FROM squidctrl.urlreplace
end=263966 newend=263966 clear=0 loadfile=0
No new values...
stat2# samsdaemon -d
Starting process: pid = 86750
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... 12 month
User name recode... NO
Delay pools... OFF
Domain separators... '0'
Log level... '0'
Create PDF file... NO
Ok
SQUID log parser time=1 min
countdown: 28
countdown: 27
.........
countdown: 1
countdown: 0
countdown: -1
starting log parser/ parser time=1 60
start time: 2008-10-1 13:28:0
starting sams /usr/local/bin/sams
countdown: 59
countdown: 58
...........
squid.conf
# TAG: acl
acl _sams_48e1dd7502d7c proxy_auth "/usr/local/etc/squid/48e1dd7502d7c.sams"
..............
# TAG: http_access
http_access allow _sams_48e1dd7502d7c
...........
url_rewrite_program /usr/local/bin/samsredir
sams.conf
[client]
SQUID_DB=squidlog
SAMS_DB=squidctrl
SQUIDCACHEFILE=access.log
SQUIDROOTDIR=/usr/local/etc/squid
SQUIDLOGDIR=/usr/local/squid/logs
SQUIDCACHEDIR=/usr/local/squid/cache
SAMSPATH=/usr/local
SQUIDPATH=/usr/sbin
SQUIDGUARDLOGPATH=/usr/local/etc/squid
SQUIDGUARDDBPATH=/var/db/squidguard
RECODECOMMAND=iconv -f KOI8-R -t 866 %finp > %fout
SHUTDOWNCOMMAND=
CACHENUM=0
MYSQLUSER=sams
MYSQLPASSWORD=******
MYSQLHOSTNAME=localhost
squid cahe:
2008/10/01 13:07:36| Squid Cache (Version 3.0.STABLE9): Exiting normally.
2008/10/01 13:20:38| Starting Squid Cache version 3.0.STABLE9 for i386-portbld-freebsd7.0...
2008/10/01 13:20:38| Process ID 86684
2008/10/01 13:20:38| With 3392 file descriptors available
2008/10/01 13:20:38| DNS Socket created at 0.0.0.0, port 53781, FD 7
2008/10/01 13:20:38| Adding domain fasvso.local from /etc/resolv.conf
2008/10/01 13:20:38| Adding nameserver 192.168.0.2 from /etc/resolv.conf
2008/10/01 13:20:38| helperOpenServers: Starting 5 'samsredir' processes
2008/10/01 13:20:38| helperStatefulOpenServers: Starting 5 'ntlm_auth' processes
2008/10/01 13:20:39| helperOpenServers: Starting 5 'ntlm_auth' processes
2008/10/01 13:20:39| Unlinkd pipe opened on FD 27
2008/10/01 13:20:39| Swap maxSize 102400 KB, estimated 7876 objects
2008/10/01 13:20:39| Target number of buckets: 393
2008/10/01 13:20:39| Using 8192 Store buckets
2008/10/01 13:20:39| Max Mem size: 32768 KB
2008/10/01 13:20:39| Max Swap size: 102400 KB
2008/10/01 13:20:39| Version 1 of swap file with LFS support detected...
2008/10/01 13:20:39| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2008/10/01 13:20:39| Using Least Load store dir selection
2008/10/01 13:20:39| Set Current Directory to /usr/local/squid/cache
2008/10/01 13:20:39| Loaded Icons.
2008/10/01 13:20:39| Accepting HTTP connections at 0.0.0.0, port 3128, FD 29.
2008/10/01 13:20:39| Accepting ICP messages at 0.0.0.0, port 3130, FD 30.
2008/10/01 13:20:39| HTCP Disabled.
2008/10/01 13:20:39| Ready to serve requests.
2008/10/01 13:20:39| Done reading /usr/local/squid/cache swaplog (787 entries)
2008/10/01 13:20:39| Finished rebuilding storage from disk.
2008/10/01 13:20:39| 787 Entries scanned
2008/10/01 13:20:39| 0 Invalid entries.
2008/10/01 13:20:39| 0 With invalid flags.
2008/10/01 13:20:39| 787 Objects loaded.
2008/10/01 13:20:39| 0 Objects expired.
2008/10/01 13:20:39| 0 Objects cancelled.
2008/10/01 13:20:39| 0 Duplicate URLs purged.
2008/10/01 13:20:39| 0 Swapfile clashes avoided.
2008/10/01 13:20:39| Took 0.26 seconds (2974.48 objects/sec).
2008/10/01 13:20:39| Beginning Validation Procedure
2008/10/01 13:20:39| Completed Validation Procedure
2008/10/01 13:20:39| Validated 1599 Entries
2008/10/01 13:20:39| store_swap_size = 13474
2008/10/01 13:20:40| storeLateRelease: released 0 objects
FreeBSD 7.0-RELEASE
squid Version 3.0.STABLE9
sams 1.0.3 stable
up
А чем дело то кончилось? Получилось ли у вас?
И кстати люди дорогие, хоть у кого нибудь
работает связка SAMS и SquidGuard?
(я имею ввиду фильтрация интернета и автоматическое отключение)
______________________________________
Система OpenSUSE 10.3
Прокси-сервер Squid 2.6.STABLE14-23
SAMS 1.0.3
Авторизация IP