Показать сообщение отдельно
Старый 24.05.2006, 13:31   #5
salimzhan
Guest
 
Сообщений: n/a
По умолчанию Re: FreeBSD: Достучаться до Internetа!

А SQUID запустился нармально
У меня нармально работаль на linux и на FreeBSD NetBSD
Вот так пробовал еше squid -z
а потом так squid -Y -D -f $conf_file
вот тебе рабочий conf
http_port 3128
https_port 3128
icp_port 0
#htcp_port 0
udp_incoming_address 0.0.0.0
udp_outgoing_address 255.255.255.255
icp_query_timeout 0
maximum_icp_query_timeout 2000
mcast_icp_query_timeout 2000
dead_peer_timeout 10 seconds
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache_mem 96 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_replacement_policy lru
cache_dir ufs /var/squid/cache 26624 16 256
cache_access_log /var/squid/logs/access.log
cache_log /var/squid/logs/cache.log
cache_store_log /var/squid/logs/store.log
emulate_httpd_log off
log_ip_on_direct on
mime_table /usr/pkg/etc/squid/mime.conf
log_mime_hdrs off
pid_filename /var/run/squid.pid
debug_options ALL,1
log_fqdn off
client_netmask 255.255.255.255
ftp_user IEUser@
ftp_list_width 32
ftp_passive on
ftp_sanitycheck on
ftp_telnet_protocol on
dns_retransmit_interval 5 seconds
dns_timeout 2 minutes
hosts_file /etc/hosts
diskd_program /usr/pkg/libexec/diskd
unlinkd_program /usr/pkg/libexec/unlinkd
pinger_program /usr/pkg/libexec/pinger
#redirect_rewrites_host_header on
#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
wais_relay_port 0
request_header_max_size 20 KB
request_body_max_size 0 KB
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
negative_ttl 5 minute
positive_dns_ttl 6 hour
negative_dns_ttl 1 minute
range_offset_limit 0 KB
forward_timeout 4 minutes
connect_timeout 1 minute
peer_connect_timeout 30 seconds
read_timeout 15 minute
request_timeout 5 minute
persistent_request_timeout 1 minute
client_lifetime 1 day
pconn_timeout 120 second
ident_timeout 10 seconds
shutdown_lifetime 30 second
########
#httpd_accel_port 80
#httpd_accel_single_host off
#httpd_accel_with_proxy off
#httpd_accel_uses_host_header off
#httpd_accel_no_pmtu_disc off
###########
acl all src 0.0.0.0/0.0.0.0
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 SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
acl our_networks src 192.168.0.0/24
no_cache deny QUERY un_cache

###########
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access allow CONNECT !SSL_ports

http_access allow our_networks
http_access deny all

http_reply_access allow all
icp_access allow all
###########

reply_header_max_size 20 KB
reply_body_max_size 0 allow all
cache_mgr [Для просмотра ссылок требуется регистрация. Зарегистрироваться...]
mail_program [Для просмотра ссылок требуется регистрация. Зарегистрироваться...]
cache_effective_user squid
cache_effective_group squid
visible_hostname mx.yourdomain.com
unique_hostname mx.yourdomain.com
announce_period 0 hour
logfile_rotate 10
memory_pools on
memory_pools_limit 50 MB
forwarded_for on
log_icp_queries on
error_directory /usr/pkg/share/squid/errors/Russian-1251
maximum_single_addr_tries 1
retry_on_error off
snmp_port 3401
snmp_access deny all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
  Вверх
 
Время генерации страницы 0.08742 секунды с 9 запросами