Page 7 of 13 FirstFirst ... 56789 ... LastLast
Results 91 to 105 of 181

Thread: squid для WL-500gP

  1. #91
    Quote Originally Posted by oleg71 View Post
    LightSquid
    Required software:
    Ну, я допустим, снимаю статистику один раз в сутки...ночью, поэтому особо не парусь по поводу загрузки роутера.
    --
    Человеку свойственно ненавидеть то, что он не понимает!

  2. #92
    а реально на роутере squid заставить авторизовать юзеров из AD?

  3. #93
    Join Date
    Feb 2008
    Location
    Moscow, Tver
    Posts
    3,963
    Quote Originally Posted by atomsk View Post
    а реально на роутере squid заставить авторизовать юзеров из AD?
    Конечно, точно по тем-же правилам, что и на большом Линуксе.

  4. #94
    надо тогда роутер в домен ввести, т.е. нужен kerberos, а он у меня никак не хочет поселиться на роутере

  5. #95
    Quote Originally Posted by Less View Post
    А Вы поставте раз в час, 5 или 24.
    Вам актуальна риал тайм статистика?

    П.С. для текущих соединений можно пользовать sqstat 1.2 sqstat
    попытался настроить SqStat

    при обращении пишет
    Code:
    SqStat error
    Error (1): Cannot get data. Server answered: HTTP/1.0 401 Unauthorized

    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 показывает пустую страницу...


    Где копать??

  6. #96
    Quote Originally Posted by serji View Post
    попытался настроить SqStat

    при обращении пишет
    Code:
    SqStat error
    Error (1): Cannot get data. Server answered: HTTP/1.0 401 Unauthorized
    при добавлении файла HOSTS.TXT показывает пустую страницу...
    Где копать??
    Откуда Вы взяли, файл 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
    wl500gp-1.9.2.7-d-r1222 + StoreJet 35 Ultra >>> rtorrent+rutorrent -|- lighhtpd + ssl + auth -|- vnStat + vnStat PHP frontend -|- vsftpd -|- squid + lightsquid...

  7. #97
    помогите с вводом в домен ASUSика ! )

  8. #98
    Что Вы имеете ввиду? С какой целью Вам это необходимо?
    wl500gp-1.9.2.7-d-r1222 + StoreJet 35 Ultra >>> rtorrent+rutorrent -|- lighhtpd + ssl + auth -|- vnStat + vnStat PHP frontend -|- vsftpd -|- squid + lightsquid...

  9. #99
    чтобы сквид юзеров из домена брал
    понимаю роутеру будет тяжело, но попробовать хочется

  10. #100
    Quote Originally Posted by atomsk View Post
    чтобы сквид юзеров из домена брал
    понимаю роутеру будет тяжело, но попробовать хочется
    Нужны пакеты kerberos, samba, squid.
    Первого нет среди пакетов, придётся собирать самому.
    Дальше - http://www.google.com/search?q=squid+ad

  11. #101
    как раз таки проблема в сборке кербероса под роутер...

  12. #102
    Quote Originally Posted by atomsk View Post
    как раз таки проблема в сборке кербероса под роутер...
    в том то и беда, вроде можно через радиус но 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'

  13. #103
    Quote Originally Posted by Less View Post
    Откуда Вы взяли, файл 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",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
    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
    права на папки стоят Nobody... ЧТО ЕЩЕ ПОСМОТРЕТЬ?

    PS попробовал ваш config.inc.php для sqStat -- результат тот же... 8(
    Error (1): Cannot get data. Server answered: HTTP/1.0 401 Unauthorized

    скорее всего баг с правами, но где?


    ЗЫ2! снес пароли в config.inc.php и squid.conf и о ЧУДО!!! ЗАРАБОТАЛО!!!

    Спасибо за помощь!
    Last edited by serji; 02-07-2009 at 10:25.

  14. #104

    как проверить что запросы до squid доходят?

    Установил 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

    Заранее благодарю.

  15. #105
    Join Date
    Jun 2009
    Location
    Нижний Новгород
    Posts
    30
    Quote Originally Posted by __KiM__ View Post
    Может кто объяснить как проверить факт того, что запросы до моего роутера доходят?
    Посмотреть access.log?

Page 7 of 13 FirstFirst ... 56789 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •