SQUID (99) Cannot assign requested address
Добавлено: 2009-08-03 12:33:24
Всем привет, такая проблема, надо заставить сквида работать на определенном канале,
на гейтвее стоит gentoo на ней squid в режиме transparent, и все работает, до того момента, когда раскоменчиваем tcp_outgoing_address, в кач-ве параметра внешний адрес канала - aaa.aaa.aaa.aaa ,
тогда в логах вот такой output:
commBind: Cannot bind socket FD 26 to aaa.aaa.aaa.aaa:0: (99) Cannot assign requested address
и firefox говорит так :
The following error was encountered while trying to retrieve the URL: http://www.gentoo.ru/node/6413
Socket Failure
The system returned: (99) Cannot assign requested address
Squid is unable to create a TCP socket, presumably due to excessive load. Please retry your request.
вот конфиг:
# TAG: http_port
http_port 3128 transparent
# TAG: icp_port
#icp_port 0
# TAG: neighbor_type_domain
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
# TAG: cache_mem
cache_mem 128 MB
# TAG: minimum_object_size
maximum_object_size 8092 KB
# TAG: maximum_object_size (bytes)
maximum_object_size_in_memory 512 KB
# TAG: cache_dir
cache_dir ufs /var/cache/squid/sq1 2048 64 256
# TAG: test_reachability on|off
test_reachability on
# TAG: http_reply_access
http_reply_access allow all
ident_lookup_access allow all
# TAG: miss_access
miss_access allow all
# TAG: server_persistent_connections
server_persistent_connections off
client_persistent_connections on
# TAG: tcp_outgoing_address
tcp_outgoing_address aaa.aaa.aaa.aaa
# TAG: cache_access_log
cache_access_log /var/log/squid/access.log
# TAG: cache_log
cache_log /var/log/squid/cache.log
# TAG: cache_store_log
cache_store_log /var/log/squid/store.log
# TAG: cache_mgr
cache_mgr root@spn.by
# TAG: visible_hostname
#visible_hostname proxy.spn.local
# TAG: auth_param
# TAG: refresh_pattern
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#redirect_program /etc/squid/redirector.pl
#redirect_children 10
# TAG: acl
acl _sams_default src "/etc/squid/default.sams"
acl _sams_default_time time MTWHFAS 00:00-23:59
acl CONNECT method CONNECT
acl all src
acl localhost src 127.0.0.1/32
acl our_networks src 192.168.1.0/24
acl manager proto cache_object
acl webserver src 192.168.1.3/32
# TAG SQstat
http_access allow localhost
http_access allow manager
http_access allow webserver
http_access deny manager
# TAG: http_access
http_access allow _sams_default _sams_default_time
http_access deny all
# TAG: coredump_dir
coredump_dir /var/cache/squid/sq1
# TAG: pid_filename
pid_filename /var/run/squid.pid
# TAG: shutdown_lifetime
shutdown_lifetime 1 second
Подскажите пож как решить проблему...
изменения ip_local_port_range с 32768 61000 на 1024 65000 не помогли
изменения ip_nonlocal_bind с 0 на 1 приводят к тому, что ругается так:
The following error was encountered while trying to retrieve the URL: http://www.gentoo.ru/node/6413
Connection to http://www.gentoo.ru failed.
The system returned: (22) Invalid argument
The remote host or network may be down. Please try the request again.
притом в логах сквида ничего нет
Вообщем need help...
на гейтвее стоит gentoo на ней squid в режиме transparent, и все работает, до того момента, когда раскоменчиваем tcp_outgoing_address, в кач-ве параметра внешний адрес канала - aaa.aaa.aaa.aaa ,
тогда в логах вот такой output:
commBind: Cannot bind socket FD 26 to aaa.aaa.aaa.aaa:0: (99) Cannot assign requested address
и firefox говорит так :
The following error was encountered while trying to retrieve the URL: http://www.gentoo.ru/node/6413
Socket Failure
The system returned: (99) Cannot assign requested address
Squid is unable to create a TCP socket, presumably due to excessive load. Please retry your request.
вот конфиг:
# TAG: http_port
http_port 3128 transparent
# TAG: icp_port
#icp_port 0
# TAG: neighbor_type_domain
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
# TAG: cache_mem
cache_mem 128 MB
# TAG: minimum_object_size
maximum_object_size 8092 KB
# TAG: maximum_object_size (bytes)
maximum_object_size_in_memory 512 KB
# TAG: cache_dir
cache_dir ufs /var/cache/squid/sq1 2048 64 256
# TAG: test_reachability on|off
test_reachability on
# TAG: http_reply_access
http_reply_access allow all
ident_lookup_access allow all
# TAG: miss_access
miss_access allow all
# TAG: server_persistent_connections
server_persistent_connections off
client_persistent_connections on
# TAG: tcp_outgoing_address
tcp_outgoing_address aaa.aaa.aaa.aaa
# TAG: cache_access_log
cache_access_log /var/log/squid/access.log
# TAG: cache_log
cache_log /var/log/squid/cache.log
# TAG: cache_store_log
cache_store_log /var/log/squid/store.log
# TAG: cache_mgr
cache_mgr root@spn.by
# TAG: visible_hostname
#visible_hostname proxy.spn.local
# TAG: auth_param
# TAG: refresh_pattern
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#redirect_program /etc/squid/redirector.pl
#redirect_children 10
# TAG: acl
acl _sams_default src "/etc/squid/default.sams"
acl _sams_default_time time MTWHFAS 00:00-23:59
acl CONNECT method CONNECT
acl all src
acl localhost src 127.0.0.1/32
acl our_networks src 192.168.1.0/24
acl manager proto cache_object
acl webserver src 192.168.1.3/32
# TAG SQstat
http_access allow localhost
http_access allow manager
http_access allow webserver
http_access deny manager
# TAG: http_access
http_access allow _sams_default _sams_default_time
http_access deny all
# TAG: coredump_dir
coredump_dir /var/cache/squid/sq1
# TAG: pid_filename
pid_filename /var/run/squid.pid
# TAG: shutdown_lifetime
shutdown_lifetime 1 second
Подскажите пож как решить проблему...
изменения ip_local_port_range с 32768 61000 на 1024 65000 не помогли
изменения ip_nonlocal_bind с 0 на 1 приводят к тому, что ругается так:
The following error was encountered while trying to retrieve the URL: http://www.gentoo.ru/node/6413
Connection to http://www.gentoo.ru failed.
The system returned: (22) Invalid argument
The remote host or network may be down. Please try the request again.
притом в логах сквида ничего нет
Вообщем need help...