Proxy Autenticado

1. Proxy Autenticado

Celso Aristides Rodrigues de Oliveira
celso_linuxer

(usa Linux Mint)

Enviado em 30/10/2010 - 23:52h

Boa Noite Galera estou com o seguinte problema

QUANDO ME AUTENTICO PELO USUARIO QUE TEM ACESSO TOTAL. O PROXY PEDE APENAS UMA VEZ A SENHA.

AGORA QUANDO É USUARIO RESTRITO O MESMO NAO PARA DE PEDIR USUARIO E SENHA TODA HORA O QUE SERÁ ISSU SEGUE O MEU SQUID


# Squid normally listens to port 3128
#http_port 3128
http_port 192.168.100.1:3128

# Configuracao geral do squid
#============================

#http_port 3128
cache_mem 64 MB
cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
maximum_object_size_in_memory 10 MB
#maximum_object_size 4096 KB
#minimun_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
pid_filename /var/run/squid.pid
error_directory /usr/share/squid/errors/Portuguese
emulate_httpd_log on
visible_hostname cna.fw.local
cache_mgr contato@tsupport.com.br
httpd_suppress_version_string off
#dns_nameservers 192.168.1.1

# *** Proxy Transparente
#=======================

#http_port 3128 transparent

# *** acl - Recomendadas
#=======================

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 # https, snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

# *** acl - Personalizadas Define portas liberadas
#=================================================

acl Safe_ports port 3050 # Interbase/Firebird
acl Safe_ports port 23000 # Serpro
acl Safe_ports port 13352 # SIRF
acl Safe_ports port 500 # FAP Digital

# *** Define a rede interna (Intranet)
#=====================================

acl intranet src 192.168.100.0/255.255.255.0

# *** http_access - Recomendadas
#===============================

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

#=======================================================
# Direitos de Acessos
#=======================================================
#
#http_access allow manager localhost
#http_access deny manager
#http_access allow purge localhost
#http_access deny purge



#=======================================================
# USANDO NCSA_AUTH
#=======================================================

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd

auth_param basic realm CNA Ingles Definitivo - ESTA NECESSIDA NAO E PREVILEGIO E SIM UM DIREITO, PORTANTO USE-O COM RESPONSABILIDADE.


#=======================================================
# AUTENTICAÇO #
#=======================================================
acl autenticados proxy_auth REQUIRED

#
#acl redelocal src 192.168.100.0/255.255.255.0

# *** Define a rede interna (Intranet)
#=====================================

#acl intranet src 192.168.100.1/255.255.255.0

# *** http_access - Recomendadas
#===============================

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

# *** Declarando as acls
#=======================
acl leticia proxy_auth "/etc/squid/leticia"
acl acesso_total proxy_auth "/etc/squid/acesso_total"
acl acesso_restritos proxy_auth "/etc/squid/acesso_restritos"
acl sites_liberados url_regex -i "/etc/squid/sites_liberados"
acl sites_bloqueados url_regex -i "/etc/squid/sites_bloqueados"
acl atualiza_antivirus urlpath_regex -i "/etc/squid/atualiza_antivirus"
acl leticia_sites url_regex -i "/etc/squid/leticia_sites"



# Liberacao total para os hosts
#==============================

http_access allow acesso_total

# Libera so o que esta na acl sites_liberados para a acl acesso_restrito
#=======================================================================
http_access allow leticia_sites leticia
http_access deny sites_bloqueados acesso_restritos
http_access allow acesso_restritos

#descomente a linha de baixo e apague a de cima para bloquear geral
#==================================================================
#http_access allow sites_liberados acesso_restritos
#http_access allow atualiza_antivirus acesso_restritos
http_access deny all



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts