Ну, я допустим, снимаю статистику один раз в сутки...ночью, поэтому особо не парусь по поводу загрузки роутера.
Printable View
а реально на роутере squid заставить авторизовать юзеров из AD?
надо тогда роутер в домен ввести, т.е. нужен kerberos, а он у меня никак не хочет поселиться на роутере
попытался настроить SqStat
при обращении пишет
Code:SqStat error
Error (1): Cannot get data. Server answered: HTTP/1.0 401 Unauthorized
при добавлении файла HOSTS.TXT показывает пустую страницу...Quote:
http://209.85.129.132/search?q=cache...TF-8&inlang=ru
Ошибка (1): Не удается получить данные. Сервер отвечает: HTTP/1.0 403 Запрещено
Это происходит потому, что мы ставим скрипт: http_access отрицать менеджер файлов
squid.conf. Tempatkanlah сценарий является наиболее вниз по пункту http_access.
Где копать??
Откуда Вы взяли, файл HOSTS.TXT? Данный енеобходимо вносить в
Code:/etc/hosts
Вот мой config.inc.php для sqStat
Также Вы читалиPHP Code:<?php
/* global settings */
$use_js=true; // use javascript for the HTML toolkits
// Maximum URL length to display in URI table column
DEFINE("SQSTAT_SHOWLEN",60);
/* proxy settings */
/* Squid proxy server ip address or host name */
$squidhost[0]="localhost";
/* Squid proxy server port */
$squidport[0]=3128;
/* cachemgr_passwd in squid.conf. Leave blank to disable authorisation */
$cachemgr_passwd[0]="pro99st0";
/* Resolve user IP addresses or print them as numbers only [true|false] */
$resolveip[0]=true;
/* uncomment next line if you want to use hosts-like file.
See hosts.txt.dist. */
// $hosts_file[0]="hosts.txt"
/* Group users by hostname - "host" or by User - "username". Username work only
with squid 2.6+ */
$group_by[0]="host";
?>
Code:/docs/README
Code:3. Edit your squid.conf to allow cachemgr protocol:
acl manager proto cache_object
# replace 10.0.0.1 with your webserver IP
acl webserver src 10.0.0.1/255.255.255.255
http_access allow manager webserver
http_access deny manager
помогите с вводом в домен ASUSика ! )
Что Вы имеете ввиду? С какой целью Вам это необходимо?
чтобы сквид юзеров из домена брал
понимаю роутеру будет тяжело, но попробовать хочется
Нужны пакеты kerberos, samba, squid.
Первого нет среди пакетов, придётся собирать самому.
Дальше - http://www.google.com/search?q=squid+ad
как раз таки проблема в сборке кербероса под роутер...:(
в том то и беда, вроде можно через радиус но squid собран без его поддержки :(
[admin@gate root]$ squid -v
Squid Cache: Version 2.7.STABLE6
configure options: '--build=i386-pc-linux-gnu' '--host=mipsel-linux' '--target=mipsel-linux' '--prefix=/opt' '--bindir=/opt/
bin' '--sbindir=/opt/sbin' '--libexecdir=/opt/libexec' '--datadir=/opt/share/squid' '--sysconfdir=/opt/etc/squid' '--sharedst
atedir=/opt/com/squid' '--localstatedir=/opt/var/squid' '--libdir=/opt/lib' '--includedir=/opt/include' '--oldincludedir=/opt
/include' '--infodir=/opt/info' '--mandir=/opt/man' '--disable-epoll' '--enable-basic-auth-helpers=NCSA' '--disable-nls' '--e
nable-storeio=ufs,null' '--disable-carp' '--disable-wccp' '--disable-wccpv2' '--enable-delay-pools' '--enable-kill-parent-hac
k' '--enable-err-language=Russian-1251' '--enable-default-err-language=Russian-1251' '--disable-ident-lookups' 'build_alias=i
386-pc-linux-gnu' 'host_alias=mipsel-linux' 'target_alias=mipsel-linux' 'CC=/opt/optware/toolchain/mipsel-linux-uclibc/gcc-4.
1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc' 'LDFLAGS= -L/opt/optware/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/
opt/optware/staging/opt/lib ' 'CPPFLAGS=-O2 -pipe -I/opt/optware/staging/opt/include ' 'CPP=/opt/optware/toolchain/mipsel-
linux-uclibc/gcc-4.1.1-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc -E'
где то нагуглилось... уже убрал
Вот мой config.inc.php для sqStat
PHP Code:<?php
/* global settings */
$use_js=true; // use javascript for the HTML toolkits
// Maximum URL length to display in URI table column
DEFINE("SQSTAT_SHOWLEN",100);
/* proxy settings */
/* Squid proxy server ip address or host name */
$squidhost[0]="192.168.1.1";
#$squidhost[0]="127.0.0.1";
/* Squid proxy server port */
$squidport[0]=3128;
/* "cachemgr_passwd secret all" in squid.conf. Leave blank to disable authorisation */
$cachemgr_passwd[0]="secret";
/* Resolve user IP addresses or print them as numbers only [true|false] */
$resolveip[0]=true;
/*false;
/* uncomment next line if you want to use hosts-like file.
See hosts.txt.dist. */
// $hosts_file[0]="hosts.txt"
/* Group users by hostname - "host" or by User - "username". Username work only
with squid 2.6+ */
$group_by[0]="host";
/* you can specify more than one proxy in the configuration file, e.g.: */
// $squidhost[1]="192.168.0.2";
// $squidport[1]=3129;
// $cachemgr_passwd[1]="secret";
// $resolveip[1]=true;
// $hosts_file[1]="otherhosts.txt"
?>
Также Мы читалиCode:/docs/README
права на папки стоят Nobody... ЧТО ЕЩЕ ПОСМОТРЕТЬ?Code:3. Edit your squid.conf to allow cachemgr protocol:
acl manager proto cache_object
# replace 10.0.0.1 with your webserver IP
acl webserver src 192.168.1.1/255.255.255.255
http_access allow manager webserver
http_access deny manager
PS попробовал ваш config.inc.php для sqStat -- результат тот же... 8(
Error (1): Cannot get data. Server answered: HTTP/1.0 401 Unauthorized
скорее всего баг с правами, но где?
ЗЫ2! снес пароли в config.inc.php и squid.conf и о ЧУДО!!! ЗАРАБОТАЛО!!!
Спасибо за помощь!
Установил squid. В логах при запуске ошибок нет.
открыл порт 3128 на доступ извне.
В настройках браузера выставил параметры proxy сервера, указав внешний ip-адрес роутера и порт 3128.
Однако, интернет не работает:(
Может кто объяснить как проверить факт того, что запросы до моего роутера доходят? Что-то типа tcpdump на порту или что-то в этом роде.
Вот инфа из cashe.log после запуска squid.
2009/07/14 14:17:06| Starting Squid Cache version 2.6.STABLE21 for mipsel-unknown-linux-gnu...
2009/07/14 14:17:06| Process ID 1853
2009/07/14 14:17:06| With 256 file descriptors available
2009/07/14 14:17:06| Using poll for the IO loop
2009/07/14 14:17:06| Performing DNS Tests...
2009/07/14 14:17:06| Successful DNS name lookup tests...
2009/07/14 14:17:06| DNS Socket created at 0.0.0.0, port 1055, FD 6
2009/07/14 14:17:06| Adding nameserver 10.150.21.1 from /etc/resolv.conf
2009/07/14 14:17:06| Adding nameserver 85.21.49.2 from /etc/resolv.conf
2009/07/14 14:17:06| helperOpenServers: Starting 5 'ncsa_auth' processes
2009/07/14 14:17:06| Unlinkd pipe opened on FD 16
2009/07/14 14:17:06| Swap maxSize 20480 + 8192 KB, estimated 0 objects
2009/07/14 14:17:06| Target number of buckets: 110
2009/07/14 14:17:06| Using 8192 Store buckets
2009/07/14 14:17:06| Max Mem size: 8192 KB
2009/07/14 14:17:06| Max Swap size: 20480 KB
2009/07/14 14:17:06| Rebuilding storage in /opt/var/squid/cache (CLEAN)
2009/07/14 14:17:06| Using Least Load store dir selection
2009/07/14 14:17:06| Set Current Directory to /opt/var/squid/cache
2009/07/14 14:17:06| Loaded Icons.
2009/07/14 14:17:06| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 18.
2009/07/14 14:17:06| Accepting ICP messages at 0.0.0.0, port 3130, FD 19.
2009/07/14 14:17:06| WCCP Disabled.
2009/07/14 14:17:06| Ready to serve requests.
2009/07/14 14:17:08| Done reading /opt/var/squid/cache swaplog (0 entries)
2009/07/14 14:17:08| Finished rebuilding storage from disk.
2009/07/14 14:17:08| 0 Entries scanned
2009/07/14 14:17:08| 0 Invalid entries.
2009/07/14 14:17:08| 0 With invalid flags.
2009/07/14 14:17:08| 0 Objects loaded.
2009/07/14 14:17:08| 0 Objects expired.
2009/07/14 14:17:08| 0 Objects cancelled.
2009/07/14 14:17:08| 0 Duplicate URLs purged.
2009/07/14 14:17:08| 0 Swapfile clashes avoided.
2009/07/14 14:17:08| Took 1.7 seconds ( 0.0 objects/sec).
2009/07/14 14:17:08| Beginning Validation Procedure
2009/07/14 14:17:08| Completed Validation Procedure
2009/07/14 14:17:08| Validated 0 Entries
2009/07/14 14:17:08| store_swap_size = 0k
2009/07/14 14:17:09| storeLateRelease: released 0 objects
Заранее благодарю.