LinuxForum.Fans
Тема

Freebsd, ошибка Squid3

Автор: frezer 7 сообщений 5981 просмотров
#166732

Добрый день!
Стоит freebsd в качестве шлюза, там прокси squid через который пользователи юзают инет.
Прошу помочь разобраться в ошибке в логах сквида, она появляется при посещении некоторых сайтов -
comm.cc(989) commResetFD: WARNING: FD -1 socket failed to allocate: (43) Protocol not supported
В логах следующее:

2011/05/27 11:10:58| Starting Squid Cache version 3.1.0.14-20091019 for amd64-unknown-freebsd7.2...
2011/05/27 11:10:58| Process ID 6432
2011/05/27 11:10:58| With 11072 file descriptors available
2011/05/27 11:10:58| Initializing IP Cache...
2011/05/27 11:10:58| DNS Socket created at 127.0.0.1, FD 7
2011/05/27 11:10:58| Adding nameserver 127.0.0.1 from squid.conf
2011/05/27 11:10:58| Unlinkd pipe opened on FD 12
2011/05/27 11:10:58| Store logging disabled
2011/05/27 11:10:58| Swap maxSize 2097152 + 262144 KB, estimated 181484 objects
2011/05/27 11:10:58| Target number of buckets: 9074
2011/05/27 11:10:58| Using 16384 Store buckets
2011/05/27 11:10:58| Max Mem size: 262144 KB
2011/05/27 11:10:58| Max Swap size: 2097152 KB
2011/05/27 11:10:58| Version 1 of swap file without LFS support detected...
2011/05/27 11:10:58| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2011/05/27 11:10:58| Using Least Load store dir selection
2011/05/27 11:10:58| Set Current Directory to /usr/local/squid/cache
2011/05/27 11:10:58| Loaded Icons.
2011/05/27 11:10:58| comm_open: socket failure: (43) Protocol not supported
2011/05/27 11:10:58| Accepting HTTP connections at 0.0.0.0:3128, FD 15.
2011/05/27 11:10:58| HTCP Disabled.
2011/05/27 11:10:58| Squid modules loaded: 0
2011/05/27 11:10:58| Ready to serve requests.
2011/05/27 11:10:58| Store rebuilding is 0.45% complete
2011/05/27 11:11:01| Done reading /usr/local/squid/cache swaplog (918896 entries)
2011/05/27 11:11:01| Finished rebuilding storage from disk.
2011/05/27 11:11:01| 525546 Entries scanned
2011/05/27 11:11:01| 0 Invalid entries.
2011/05/27 11:11:01| 0 With invalid flags.
2011/05/27 11:11:01| 132196 Objects loaded.
2011/05/27 11:11:01| 0 Objects expired.
2011/05/27 11:11:01| 393350 Objects cancelled.
2011/05/27 11:11:01| 0 Duplicate URLs purged.
2011/05/27 11:11:01| 0 Swapfile clashes avoided.
2011/05/27 11:11:01| Took 3.11 seconds (42543.35 objects/sec).
2011/05/27 11:11:01| Beginning Validation Procedure
2011/05/27 11:11:01| Completed Validation Procedure
2011/05/27 11:11:01| Validated 264413 Entries
2011/05/27 11:11:01| store_swap_size = 1887334
2011/05/27 11:11:01| storeLateRelease: released 0 objects
2011/05/27 11:12:42| comm.cc(989) commResetFD: WARNING: FD -1 socket failed to allocate: (43) Protocol not supported
2011/05/27 11:12:42| comm.cc(989) commResetFD: WARNING: FD -1 socket failed to allocate: (43) Protocol not supported
2011/05/27 11:12:42| comm.cc(989) commResetFD: WARNING: FD -1 socket failed to allocate: (43) Protocol not supported

ДАЛЕЕ ПОСЛЕДНЯЯ СТРОКА ВЫДАЁТСЯ СОТНИ РАЗ В СЕКУНДУ!!!!

#166782

В моём случае не настолько всё глобально-
С точки зрения пользователя: всё работает кроме сайта freebsd.org и ещё парочки.
При доступе на эти сайты через прокси отваливается аська (т.к. она тоже через прокси) на пару секунд, затем снова цепляется.
В логах тут же начинает валить эта ошибка, может что-то подскажете посмотреть\проверить ???

P.S. Мне пока посоветовали только сквид обновить

#166972

Какой весрии squid, с какими ключами собран ?
и squid.conf было бы не плохо показать :cool:

#167027

Squid Cache: Version 2.7.STABLE7

1 # This file is auto-generated by 'make config'.
2 # No user-servicable parts inside!
3 # Options for squid-2.7.7_3
4 _OPTIONS_READ=squid-2.7.7_3
5 WITHOUT_SQUID_KERB_AUTH=true
6 WITH_SQUID_LDAP_AUTH=true
7 WITHOUT_SQUID_NIS_AUTH=true
8 WITH_SQUID_SASL_AUTH=true
9 WITH_SQUID_DELAY_POOLS=true
10 WITHOUT_SQUID_SNMP=true
11 WITH_SQUID_CARP=true
12 WITHOUT_SQUID_SSL=true
13 WITHOUT_SQUID_PINGER=true
14 WITHOUT_SQUID_DNS_HELPER=true
15 WITHOUT_SQUID_HTCP=true
16 WITHOUT_SQUID_VIA_DB=true
17 WITHOUT_SQUID_CACHE_DIGESTS=true
18 WITH_SQUID_WCCP=true
19 WITHOUT_SQUID_WCCPV2=true
20 WITHOUT_SQUID_STRICT_HTTP=true
21 WITH_SQUID_IDENT=true
22 WITHOUT_SQUID_REFERER_LOG=true
23 WITHOUT_SQUID_USERAGENT_LOG=true
24 WITHOUT_SQUID_ARP_ACL=true
25 WITHOUT_SQUID_PF=true
26 WITHOUT_SQUID_IPFILTER=true
27 WITHOUT_SQUID_FOLLOW_XFF=true
28 WITHOUT_SQUID_AUFS=true
29 WITHOUT_SQUID_COSS=true
30 WITH_SQUID_KQUEUE=true
31 WITHOUT_SQUID_LARGEFILE=true
32 WITHOUT_SQUID_STACKTRACES=true

Squid.conf

ttp_port 3128
icp_port 0
hierarchy_stoplist cgi-bin ? chat
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 256 MB
maximum_object_size 4092 KB
maximum_object_size_in_memory 412 KB

cache_dir ufs /usr/local/squid/cache 2048 64 256
cache_access_log /usr/local/squid/var/logs/access.log
cache_store_log none
cache_log /usr/local/squid/logs/start.log
logfile_rotate 1
hosts_file /etc/hosts
visible_hostname proxy
tcp_outgoing_address x.x.x.x
dns_nameservers 127.0.0.1
udp_outgoing_address 127.0.0.1
cache_mgr admin@.ru
cache_effective_user nobody nogroup
coredump_dir /usr/local/squid/cache
pid_filename /temp/squid.pid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl SSL_ports port 443 563
acl SSL_for_client_banks port 910 8443 4500
acl safe_ports port 80 # http
acl safe_ports port 21 # ftp
acl safe_ports port 443 # ssl
acl ICQ_ports port 5190 # ICQ
acl safe_ports port 888
acl safe_ports port 1494
acl safe_ports port 1604
acl ICQ_proto proto HTTPS

acl allowed_net_all src 192.168.52.0/24 192.168.51.0/24

acl allowed_x.x.x.x src y.y.y.y

acl special_client src 192.168.52.4
http_access deny special_client special_url
http_access allow allowed_net_all
debug_options ALL,1 33,2
http_access deny all

#167249

Тема ошибка Squid 3,

Squid Cache: Version 2.7.STABLE7

может стоит поставить squid 3 ?

#167250
Dimas написал:
может стоит поставить squid 3 ?

или обновить до 2.7.9 версии, хотя лучше всеже до 3й ветке, там уже поддержка ipv6 есть :rolleyes:

Войдите или зарегистрируйтесь, чтобы ответить.