squid
Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Услуги хостинговой компании Host-Food.ru
Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
- Alex Keda
- стреляли...
- Сообщения: 35439
- Зарегистрирован: 2004-10-18 14:25:19
- Откуда: Made in USSR
- Контактная информация:
-
- рядовой
- Сообщения: 29
- Зарегистрирован: 2006-10-29 13:13:07
-
- рядовой
- Сообщения: 29
- Зарегистрирован: 2006-10-25 7:24:10
Просто на один прокси
cache_peer ${ip} parent 3128 0 no-query default
если таких несколько, то будут перебираться по кругу
#cache_peer ${ip} parent 80 0 no-query round-robin
И ещё личная раскопка:
Отправка через старший парент, если парент не рабоатет, то отправка не произойдет.
cache_peer ${ip} parent 3128 0 no-query default
если таких несколько, то будут перебираться по кругу
#cache_peer ${ip} parent 80 0 no-query round-robin
И ещё личная раскопка:
Код: Выделить всё
acl POST method POST # Temporary to get
never_direct allow POST
Код: Выделить всё
# cat /usr/local/etc/rc.d/squid.sh
#!/bin/sh
#
# $FreeBSD: ports/www/squid/files/squid.sh.in,v 1.2 2006/07/11 09:26:23 itetcu Exp $
#
# PROVIDE: squid
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Note:
# Set "squid_enable=yes" in either /etc/rc.conf, /etc/rc.conf.local or
# /etc/rc.conf.d/squid to make this script actually do something. There
# you can also set squid_chdir, squid_user, and squid_flags.
#
# Please see squid(8), rc.conf(5) and rc(8) for further details.
#
name=squid
command=/usr/local/sbin/squid
extra_commands=reload
reload_cmd="${command} -k reconfigure"
stop_cmd="squid_stop"
squid_chdir=${squid_chdir:-/usr/local/squid/logs}
squid_enable=${squid_enable:-"YES"}
squid_flags=${squid_flags-"-D"}
squid_user=${squid_user:-squid}
default_config=/usr/local/etc/squid/squid.conf
squid_stop() {
echo "Stopping ${name}."
${command} -k shutdown
run_rc_command poll
}
. /etc/rc.subr
rcvar=`set_rcvar`
load_rc_config ${name}
# squid(8) will not start if ${default_config} is not present so try
# to catch that beforehand via ${required_files} rather than make
# squid(8) crash.
# If you remove the default configuration file make sure to add
# '-f /path/to/your/squid.conf' to squid_flags
if [ -z "${squid_flags}" ]; then
required_files=${default_config}
fi
required_dirs=${squid_chdir}
run_rc_command "$1"
-
- рядовой
- Сообщения: 29
- Зарегистрирован: 2006-10-29 13:13:07
-
- рядовой
- Сообщения: 29
- Зарегистрирован: 2006-10-29 13:13:07
запустил
а что такое?
The following error was encountered:
Unable to determine IP address from host name for win.mail.ru
The dnsserver returned:
Name Server for domain 'win.mail.ru' is unavailable.
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
а что такое?
The following error was encountered:
Unable to determine IP address from host name for win.mail.ru
The dnsserver returned:
Name Server for domain 'win.mail.ru' is unavailable.
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
- Alex Keda
- стреляли...
- Сообщения: 35439
- Зарегистрирован: 2004-10-18 14:25:19
- Откуда: Made in USSR
- Контактная информация:
-
- рядовой
- Сообщения: 21
- Зарегистрирован: 2006-11-09 14:43:21
- Контактная информация:
-
- рядовой
- Сообщения: 29
- Зарегистрирован: 2006-10-29 13:13:07
- Alex Keda
- стреляли...
- Сообщения: 35439
- Зарегистрирован: 2004-10-18 14:25:19
- Откуда: Made in USSR
- Контактная информация:
-
- рядовой
- Сообщения: 29
- Зарегистрирован: 2006-10-29 13:13:07
-
- рядовой
- Сообщения: 29
- Зарегистрирован: 2006-10-29 13:13:07
freebsd# nslookup win.mail.ru
;; connection timed out; no servers could be reached
некоторые сайты открываются
некоторые Unable to determine IP address from host name for
_________________________________________________
cache_peer 172.68.0.254 parent 8080 0 no-query default
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
no_cache deny QUERY
cache_mem 128 MB
# cache_swap_low 90
# cache_swap_high 95
maximum_object_size 8092 KB
# minimum_object_size 0 KB
maximum_object_size_in_memory 512 KB
cache_dir ufs /usr/local/squid/cache 10240 64 256
access_log /usr/local/squid/logs/access.log squid
cache_log /usr/local/squid/logs/cache.log
# cache_store_log /usr/local/squid/logs/store.log
# emulate_httpd_log off
# log_ip_on_direct on
# mime_table /usr/local/etc/squid/mime.conf
# ftp_user Squid@
# ftp_list_width 32
# ftp_passive on
# ftp_sanitycheck on
# ftp_telnet_protocol on
# check_hostnames on
# allow_underscore on
# cache_dns_program /usr/local/libexec/squid/dnsserver
dns_children 3
redirect_children 10
# dns_retransmit_interval 5 seconds
# dns_timeout 2 minutes
# dns_defnames off
#dns_nameservers 172.68.0.254 172.68.0.220
# none
# hosts_file /etc/hosts
# diskd_program /usr/local/libexec/squid/diskd-daemon
# url_rewrite_children 5
# url_rewrite_concurrency 0
# url_rewrite_host_header on
# location_rewrite_children 5
# location_rewrite_concurrency 0
#Recommended minimum configuration per scheme:
#auth_param negotiate program <uncomment and complete this line to activate>
#auth_param negotiate children 5
#auth_param negotiate keep_alive on
#auth_param ntlm program <uncomment and complete this line to activate>
#auth_param ntlm children 5
#auth_param ntlm keep_alive on
#auth_param digest program <uncomment and complete this line>
#auth_param digest children 5
#auth_param digest realm Squid proxy-caching web server
#auth_param digest nonce_garbage_interval 5 minutes
#auth_param digest nonce_max_duration 30 minutes
#auth_param digest nonce_max_count 50
#auth_param basic program <uncomment and complete this line>
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
# authenticate_cache_garbage_interval 1 hour
# authenticate_ttl 1 hour
# authenticate_ip_ttl 0 seconds
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
#acl giper src 172.68.0.1-172.68.0.253/255.255.255.255
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl our_networks src 172.68.0.0/24
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # 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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
http_access allow giper
http_access allow our_networks
http_reply_access allow all
icp_access allow all
acl POST method POST # Temporary to get
never_direct allow POST
coredump_dir /usr/local/squid/cache
;; connection timed out; no servers could be reached
некоторые сайты открываются
некоторые Unable to determine IP address from host name for
_________________________________________________
cache_peer 172.68.0.254 parent 8080 0 no-query default
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
no_cache deny QUERY
cache_mem 128 MB
# cache_swap_low 90
# cache_swap_high 95
maximum_object_size 8092 KB
# minimum_object_size 0 KB
maximum_object_size_in_memory 512 KB
cache_dir ufs /usr/local/squid/cache 10240 64 256
access_log /usr/local/squid/logs/access.log squid
cache_log /usr/local/squid/logs/cache.log
# cache_store_log /usr/local/squid/logs/store.log
# emulate_httpd_log off
# log_ip_on_direct on
# mime_table /usr/local/etc/squid/mime.conf
# ftp_user Squid@
# ftp_list_width 32
# ftp_passive on
# ftp_sanitycheck on
# ftp_telnet_protocol on
# check_hostnames on
# allow_underscore on
# cache_dns_program /usr/local/libexec/squid/dnsserver
dns_children 3
redirect_children 10
# dns_retransmit_interval 5 seconds
# dns_timeout 2 minutes
# dns_defnames off
#dns_nameservers 172.68.0.254 172.68.0.220
# none
# hosts_file /etc/hosts
# diskd_program /usr/local/libexec/squid/diskd-daemon
# url_rewrite_children 5
# url_rewrite_concurrency 0
# url_rewrite_host_header on
# location_rewrite_children 5
# location_rewrite_concurrency 0
#Recommended minimum configuration per scheme:
#auth_param negotiate program <uncomment and complete this line to activate>
#auth_param negotiate children 5
#auth_param negotiate keep_alive on
#auth_param ntlm program <uncomment and complete this line to activate>
#auth_param ntlm children 5
#auth_param ntlm keep_alive on
#auth_param digest program <uncomment and complete this line>
#auth_param digest children 5
#auth_param digest realm Squid proxy-caching web server
#auth_param digest nonce_garbage_interval 5 minutes
#auth_param digest nonce_max_duration 30 minutes
#auth_param digest nonce_max_count 50
#auth_param basic program <uncomment and complete this line>
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
# authenticate_cache_garbage_interval 1 hour
# authenticate_ttl 1 hour
# authenticate_ip_ttl 0 seconds
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
#acl giper src 172.68.0.1-172.68.0.253/255.255.255.255
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl our_networks src 172.68.0.0/24
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # 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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
http_access allow giper
http_access allow our_networks
http_reply_access allow all
icp_access allow all
acl POST method POST # Temporary to get
never_direct allow POST
coredump_dir /usr/local/squid/cache