Прокси работал, а потом стал тормозить и перестал загружать некоторые сайты -броузеры говорят, что ждут ответа от сервера. Памяти свободной 1714624k free. Система не свопится. При перезагрузке прокси снова работает нормально. squid.conf ##################################### ACL ###################################### acl manager proto cache_object acl all src 0.0.0.0/0.0.0.0 acl root_host src 192.168.2.199 acl localhost src 127.0.0.1/255.255.255.255 acl my src 192.168.2.0/24 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 9443 9080 563 15100 11001 11002 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 9443 9080 563 11001 11002 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT #Add or remove sites by REGEX in this file acl bad_sites url_regex -i "/usr/local/squid/etc/bw.regex" ############################################################################### ## ######################## HTTP_ACCESS ################################## #allow all to root/deny bad dst/allow my src/deny all #http_access allow root_host http_access deny bad_sites http_access allow manager localhost http_access deny manager http_access allow my http_access deny all icp_access allow all ############################################################### ############# CACHE ############# hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin \? cache deny QUERY cache allow all cache_mem 120 MB ################################## ############# PATHS ################################# cache_dir ufs /usr/local/squid/var/cache 7000 16 256 access_log /usr/local/squid/var/logs/access.log squid #################################################### ############# SPECIAL PARAMETERS ################ refresh_pattern ^ftp: 1440&nbs... refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 acl apache rep_header Server ^Apache broken_vary_encoding allow apache cache_effective_user squid cache_effective_group squid log_access allow all http_port 3128 transparent reload_into_ims on visible_hostname squid ______________ rc.squid #!/bin/sh # Start/stop/restart/reload the Squid Internet Object Cache (squid) # To make Squid start automatically at boot, make this # file executable: chmod 755 /etc/rc.d/rc.Squid # # Written for Slackware Linux by Erik Jan Tromp # Modified by David Somero <xgizzmo@slackbuilds.org> SQUIDCFG=/usr/local/squid/etc/squid.conf SQUIDCMD=/usr/local/squid/sbin/squid if [ ! -r $SQUIDCFG ]; then echo "Please set the correct path to $SQUIDCFG" exit 1 fi if [ ! -x $SQUIDCMD ]; then echo "$SQUIDCMD not found" exit 1 fi squid_start() { # Create cache directory hierarchy if needed ALL_DIRS=$(awk '/^cache_dir/ {print $3}' $SQUIDCFG) [ -z "$ALL_DIRS" ] && ALL_DIRS=/usr/local/squid/var/cache/ for CACHE_DIR in $ALL_DIRS ; do if [ ! -d $CACHE_DIR/00 ] ; then echo "Creating swap directories: $SQUIDCMD -z" $SQUIDCMD -z 2> /dev/null break fi done echo "Starting Squid: $SQUIDCMD -DF" $SQUIDCMD -DF } squid_stop() { COUNTDOWN=$(awk '/^shutdown_lifetime/ {print $2}' $SQUIDCFG) [ -z "$COUNTDOWN" ] && COUNTDOWN=30 echo -n "Shutting down Squid in $COUNTDOWN seconds: " $SQUIDCMD -k shutdown 2> /dev/null while [ $SQUIDCMD -k check 2> /dev/null ] do sleep 1 echo -n . COUNTDOWN=$[ $COUNTDOWN - 1 ] if [ $COUNTDOWN -le 0 ] ; then $SQUIDCMD -k interrupt 2> /dev/null sleep 1 break fi done } squid_restart() { squid_stop sleep 1 squid_start } squid_reload() { $SQUIDCMD -k reconfigure 2> /dev/null } case "$1" in 'start') squid_start ;; 'stop') squid_stop ;; 'restart') squid_restart ;; 'reload') squid_reload ;; *) echo "usage: $0 start|stop|restart|reload" esac ___________________________________ cache.log после перезагрузки 2008/10/17 12:09:48| Done reading /usr/local/squid/var/cache swaplog (25092 entries) 2008/10/17 12:09:48| Finished rebuilding storage from disk. 2008/10/17 12:09:48| 24035 Entries scanned 2008/10/17 12:09:48| 0 Invalid entries. 2008/10/17 12:09:48| 0 With invalid flags. 2008/10/17 12:09:48| 24035 Objects loaded. 2008/10/17 12:09:48| 0 Objects expired. 2008/10/17 12:09:48| 1037 Objects cancelled. 2008/10/17 12:09:48| 0 Duplicate URLs purged. 2008/10/17 12:09:48| 0 Swapfile clashes avoided. 2008/10/17 12:09:48| Took 0.3 seconds (93488.3 objects/sec). 2008/10/17 12:09:48| Beginning Validation Procedure 2008/10/17 12:09:49| Completed Validation Procedure 2008/10/17 12:09:49| Validated 22998 Entries 2008/10/17 12:09:49| store_swap_size = 282004k 2008/10/17 12:09:49| storeLateRelease: released 0 objects 2008/10/17 12:10:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir' 2008/10/17 12:10:03| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters' 2008/10/17 12:10:03| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters' 2008/10/17 12:15:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir' 2008/10/17 12:15:03| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters' 2008/10/17 12:15:03| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
Ответ на:
комментарий
от anonymous
Ответ на:
комментарий
от samson
Ответ на:
комментарий
от mora
Ответ на:
комментарий
от mora
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум squid и локальный /etc/hosts (2010)
- Форум squid self ddos (2008)
- Форум Squid - access denied (2018)
- Форум Не работатет редирект в Squid на 3х интерефейсовой машине. (2009)
- Форум Squid как веб ускоритель (2005)
- Форум Squid.conf (Squid 3) доступ зарещен пишет на соседней машине (2008)
- Форум Squid не открывает заблокированные сайты (2017)
- Форум ftp через squid (2004)
- Форум проблемы со SQUID'ом (2004)
- Форум Нужна помощь по Squid!!! Очень нужна!!! (2002)