Enviado em 24/07/2013 - 18:22h
ola, montei um proxy. e parece tudo ok, mas quando um site que deve ser bloqueado eh acessado por https o squid não mostra a pagina de erro. alguem pode me ajudar?http_port 3128 visible_hostname Servidor_Proxy error_directory /usr/share/squid3/errors/Portuguese ## configurações do cache #################################### cache_mem 64 MB maximum_object_size_in_memory 64 KB maximum_object_size 200 MB cache_swap_low 90 cache_swap_high 95 # tamanhoMB QTdir QTsub-dir cache_dir ufs /var/spool/squid3 2048 16 256 cache_access_log /var/log/squid3/access.log cache_log /var/log/squid3/cache.log # tempo Min %Alteracao tempo Min # tempo no cache verificar paraSer atualizarMesmoSem # Alteracao Atualizado alteracao refresh_pattern ^ftp: 360 20% 10080 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 10 20% 2280 ## fim do cache ############################################### ## Configuração Autenticacao ################################## auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd auth_param basic credentialsttl 2 hour #tempo ate aunteticar denovo auth_param basic realm Servidor Proxy, preencha seus dados! acl autenticados proxy_auth REQUIRED ## fim da autenticacao ######################################## ## regras de acesso ########################################## acl redes_permitidas src 192.168.2.0/24 127.0.0.1/32 http_access deny !redes_permitidas acl localhost src 127.0.0.1/32 acl manager proto cache_object http_access allow manager localhost http_access deny manager acl purge method PURGE http_access allow purge localhost http_access deny purge acl Safe_ports port 21 70 80 210 280 443 488 563 591 631 777 873 901 1025-65535 http_access deny !Safe_ports #conexao direta para portas seguras acl connect method CONNECT acl SSL_ports port 443 563 873 http_access deny connect !SSL_ports acl dominios_bloqueados dstdomain "/etc/squid3/bloqueios/dominios" acl palavras_bloqueadas url_regex -i "/etc/squid3/bloqueios/palavras" acl extencoes_bloqueadas urlpath_regex -i "/etc/squid3/bloqueios/extencoes" acl diretores proxy_auth "/etc/squid3/grupos_usuarios/diretores" acl funcionarios proxy_auth "/etc/squid3/grupos_usuarios/funcionarios" http_access allow diretores http_access deny dominios_bloqueados http_access deny palavras_bloqueadas http_access deny extencoes_bloqueadas http_access allow funcionarios http_access deny all
Enviado em 12/11/2013 - 16:22h
Também estou procurando uma solução para isto.Enviado em 25/11/2013 - 18:50h
a solucao é proxy autenticadoEnviado em 14/02/2014 - 12:17h
Não consegui resolver este problema!!! Voce conseguiu?Enviado em 14/02/2014 - 20:47h
Enviado em 17/10/2016 - 10:42h
Isto não é um erro. O proxy não entrega a página de erro quando bloqueia um site usando https por que ele só consegue ler o endereço com a porta, por que o próprio navegador informa o endereço. por exemplo www.site.com.br:443.Enviado em 26/10/2016 - 15:30h
Vou abrir um tópico dedicado mas como existe a dúvida neste tópico também:acl qlproxy_ssl_force_bump req_header X-SSL-Bump -i force ssl_bump server-first qlproxy_ssl_force_bump # bump all others by default ssl_bump server-first all
# +------------------------------------------------------------------------------+ # | Endian Firewall | # +------------------------------------------------------------------------------+ # | Copyright (c) 2005-2006 Endian | # | Endian GmbH/Srl | # | Bergweg 41 Via Monte | # | 39057 Eppan/Appiano | # | ITALIEN/ITALIA | # | info@endian.it | # | | # | This program is free software; you can redistribute it and/or | # | modify it under the terms of the GNU General Public License | # | as published by the Free Software Foundation; either version 2 | # | of the License, or (at your option) any later version. | # | | # | This program is distributed in the hope that it will be useful, | # | but WITHOUT ANY WARRANTY; without even the implied warranty of | # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # | GNU General Public License for more details. | # | | # | You should have received a copy of the GNU General Public License | # | along with this program; if not, write to the Free Software | # | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | # | http://www.fsf.org/ | # +------------------------------------------------------------------------------+ shutdown_lifetime 1 seconds icp_port 0 workers 1 # direct access - acls acl to_proxy_port port 8080 18080 18081 # proxy interfaces - acls acl to_orange_interface dst 192.168.2.240 acl to_green_interface dst 192.168.174.249 acl from_orange src "/etc/squid/acls/orange_subnets.acl" acl to_orange dst "/etc/squid/acls/orange_subnets.acl" acl from_green src "/etc/squid/acls/green_subnets.acl" acl to_green dst "/etc/squid/acls/green_subnets.acl" tcp_outgoing_mark 0x20000000 tcp_preserve_outgoing_mark_mask 0x3fff8 #=== ORANGE zone setting === #=== ORANGE IP 192.168.2.240 === http_port 192.168.2.240:8080 #=== GREEN zone setting === #=== GREEN IP 192.168.174.249 === http_port 192.168.174.249:8080 nontransparent_spoof_client_ip allow all dns_v4_first on cache_effective_user squid pid_filename /var/run/squid.pid cache_mem 40 MB cache_dir rock /var/spool/squid 500 max-size=32768 error_directory /usr/share/squid/errors/en icon_directory /usr/share/squid/icons max_filedesc 54140 server_persistent_connections off half_closed_clients off buffered_logs on # START LOG cache_log /var/log/squid/cache.log access_log syslog:local6.info cache_store_log none strip_query_terms off log_mime_hdrs off # END LOG # FORWARD IP ADDRESS forwarded_for delete # START AUTHENTICATION # windows logon name for auth auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp --configfile=/etc/samba/winbind.conf auth_param ntlm children 45 auth_param ntlm keep_alive off # domain user or auth auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic --configfile=/etc/samba/winbind.conf auth_param basic children 45 auth_param basic realm geekzilla.geek #kerberos auth_param negotiate program /usr/lib/squid/negotiate_wrapper_auth --ntlm /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp --configfile=/etc/samba/winbind.conf --kerberos /usr/lib/squid/negotiate_kerberos_auth auth_param negotiate children 45 auth_param negotiate keep_alive off external_acl_type NT_global_group children-max=45 ttl=300 ipv4 %LOGIN /usr/lib/squid/wbinfo_group.pl acl for_auth_rule0 external NT_global_group "/etc/squid/groups/rule0" acl for_auth_rule1 external NT_global_group "/etc/squid/groups/rule1" acl for_auth_rule2 external NT_global_group "/etc/squid/groups/rule2" acl for_auth_users proxy_auth REQUIRED # END AUTHENTICATION # network - acls acl from_all src all acl to_all dst all acl from_localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.1/32 acl CONNECT method CONNECT acl to_http_port port 80 acl to_https_port port 10443 # allowed ports - acls acl allowed_ports port "/etc/squid/acls/ports.acl" acl allowed_sslports port "/etc/squid/acls/sslports.acl" acl within_timeframe_rule0 time MTWHFAS 00:00-24:00 acl using_mimetype_rule0 rep_mime_type "/etc/squid/acls/mimetypes_rule0.acl" acl with_browser_rule0 browser (AOL)|(avantbrowser)|(Chrome)|(Firefox)|(FrontPage)|(Gecko)|(GetRight)|(Go!Zilla)|(Google\sToolbar)|(Iceweasel)|(Java)|(Konqueror)|(Lynx)|(MSIE.*[)]$)|(^Mozilla\/4.[7|8])|(Netscape)|(Opera)|(Safari)|(wget)|(Industry\sUpdate\sControl)|(Windows\sUpdate)|(Service\sPack\sSetup)|(Progressive\sDownload)|(Windows-Update-Agent)|(Windows\sUpdate\sAgent)|(APT-HTTP/1\.3)|(urlgrabber) acl within_timeframe_rule1 time MTWHFAS 00:00-24:00 acl within_timeframe_rule2 time MTWHFAS 00:00-24:00 # caching settings refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 cache deny from_localhost cache deny CONNECT cache allow from_all # http access to cachemanager acl cachemanageracl proto cache_object http_access allow cachemanageracl from_localhost http_access deny cachemanageracl # snmp access settings snmp_port 3401 acl snmppublic snmp_community public snmp_access allow snmppublic from_localhost snmp_access deny from_all # http access to squid http_access deny to_localhost http_access allow from_localhost http_access allow from_green to_green_interface to_http_port http_access allow from_green to_green_interface to_https_port http_access allow CONNECT from_green to_green_interface to_https_port http_access deny to_orange_interface to_https_port http_access deny to_orange_interface to_proxy_port http_access deny to_green_interface to_https_port http_access deny to_green_interface to_proxy_port http_access deny !allowed_ports !allowed_sslports http_access deny CONNECT !allowed_sslports http_access deny within_timeframe_rule0 for_auth_rule0 with_browser_rule0 using_mimetype_rule0 http_access allow within_timeframe_rule1 for_auth_rule1 http_access allow within_timeframe_rule2 for_auth_rule2 http_access deny from_all # http reply access rules http_reply_access allow from_localhost http_reply_access deny within_timeframe_rule0 for_auth_rule0 with_browser_rule0 using_mimetype_rule0 http_reply_access allow within_timeframe_rule1 for_auth_rule1 http_reply_access allow within_timeframe_rule2 for_auth_rule2 http_reply_access deny from_all # max/min object size maximum_object_size 1024 KB minimum_object_size 0 KB reply_body_max_size 300000 KB from_all visible_hostname proxy01.geekzilla.rdc icap_enable on icap_service_revival_delay 30 icap_service_failure_limit -1 icap_preview_enable on icap_preview_size 128 icap_send_client_ip on icap_send_client_username on include /etc/squid/squid.conf.d/*.conf adaptation_access service_cf_req deny cachemanageracl # icap contentfilter access control # rule 0 - adaptation_access service_cf_req deny within_timeframe_rule0 for_auth_rule0 with_browser_rule0 using_mimetype_rule0 # rule 1 - adminsrede adaptation_access service_cf_req allow within_timeframe_rule1 for_auth_rule1 adaptation_meta X-Profile profileadminsrede within_timeframe_rule1 for_auth_rule1 # rule 2 - domain_users adaptation_access service_cf_req allow within_timeframe_rule2 for_auth_rule2 adaptation_meta X-Profile profiledomain_users within_timeframe_rule2 for_auth_rule2 # default deny - only allow defined traffic adaptation_access service_cf_req deny all
Como gerar qualquer emoji ou símbolo unicode a partir do seu teclado
Instalar e Configurar o Slackware Linux em 2025
Como configurar os repositórios do apt no Debian 12 em 2025
Passkeys: A Evolução da Autenticação Digital
Instalação de distro Linux em computadores, netbooks, etc, em rede com o Clonezilla
Muitas dificuldades ao instalar distro Linux em Notebook Sony Vaio PCG-6131L (VPCEA24FM)
Slackpkg+ (Slackpkg Plus) está de volta!
Como dividir duas janelas igualmente e lado-a-lado na sua tela
Configurando o Conky para iniciar corretamente no sistema
3 configurações básicas que podem melhorar muito a sua edição pelo editor nano
Minha rede tem um espaço invisível que não dá pra digitar o nome da re... (1)
Pedagogia no brasil não passa de alfabetização por m4sturbação mental ... (2)
compilação samba 4.22 rock linux 9.5 (3)
Erro de segmentação «Segmentation fault (core dumped)» ao retornar obj... (7)