[FUG-BR] Proxy

Andre Luiz andrebjl em yahoo.com.br
Qua Jun 22 14:28:49 BRT 2005


De um pulo na url http://wwwsr.unijui.tche.br/~heini/freebsd/squid.html pode te ajudar um pouco.

Luís Cargnini <lvcargnini em gmail.com> escreveu:pessoal coloquei squid aqui e tal fiz o redirecionametno da rede
interna da 80 para 3128 e tal mas smepre que o pessoal tenta navegar
dá erro e diz qeu o enderço não está permitido minhas conf são:

#Default:
http_port 127.0.0.1:3128
#http_port 80
acl to_localhost dst 127.0.0.1
http_access deny to_localhost
acl our_networks src 192.168.1.0/24
http_access allow our_networks
visible_hostname area51.innalogics.com.br
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_single_host on
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir ufs /usr/local/squid/cache 1000 16 256
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
cache_store_log /usr/local/squid/logs/store.log
hosts_file /etc/hosts
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
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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
#INNALOGICS ACLs
acl xxx_sites url_regex xxx
http_access deny xxx_sites
acl playboy url_regex playboy.com
http_access deny playboy
acl morango url_regex morango.com.br
http_access deny morango
follow_x_forwarded_for allow localhost
follow_x_forwarded_for deny all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access deny all
http_reply_access allow all
icp_access allow all
acl all_outgoing_pcs src 192.168.1.0/255.255.255.0
tcp_outgoing_address x.x.x.x all_outgoing_pcs
cache_effective_user squid
forwarded_for on
log_icp_queries on
query_icmp on

aguardo respostas
-- 
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Mastering Degree student @ PUC-RS Eletrical Engineer Faculty

_______________________________________________
Freebsd mailing list
Freebsd em fug.com.br
http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br


__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger 
http://br.download.yahoo.com/messenger/ 
_______________________________________________
Freebsd mailing list
Freebsd em fug.com.br
http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br




Mais detalhes sobre a lista de discussão freebsd