Enviado em 27/04/2015 - 13:33h
Olá Pessoal.# ./configure --build=i486-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/squid --srcdir=. --datadir=/usr/share/squid --sysconfdir=/etc/squid --mandir=/usr/share/man --with-cppunit-basedir=/usr --with-logdir=/var/log/squid --with-pidfile=/var/run/squid.pid --with-filedescriptors=65536 --with-large-files --with-default-user=proxy --enable-ssl --enable-ssl-crtd --with-openssl
http_port 3128 intercept http_port 8080 https_port 3130 intercept ssl-bump cert=/etc/squid/openssl.crt key=/etc/squid/openssl.key visible_hostname MIRACULIX always_direct allow all ssl_bump server-first all sslproxy_cert_error allow all sslproxy_flags DONT_VERIFY_PEER sslcrtd_program /usr/lib/squid/ssl_crtd -s /var/lib/ssl_db -M 4MB sslcrtd_children 8 startup=1 idle=1 acl QUERY urlpath_regex cgi-bin? no_cache deny QUERY cache_mem 64 MB maximum_object_size_in_memory 64 KB maximum_object_size 512 MB minimum_object_size 0 KB cache_swap_low 90 cache_swap_high 95 cache_dir ufs /var/spool/squid 2048 16 256 cache_mgr thiago.nogueira@prestus.com.br cache_access_log /var/log/squid/access.log cache_log /var/log/squid/access.log access_log stdio:/var/log/squid/access.log squid cache_store_log /var/log/squid/store.log cache_swap_log /var/log/squid/swap.log logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt pid_filename /var/log/squid/squid.pid refresh_pattern ^ftp: 15 20% 2280 refresh_pattern ^gopher: 15 0% 2280 refresh_pattern . 15 20% 2280 acl SSL_ports port 443 563 acl Safe_ports port 21 22 80 443 563 70 210 280 488 59 777 901 8080 1025-65535 acl purge method PURGE acl CONNECT method CONNECT acl localnet src 192.168.100.0/24 http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access deny CONNECT !SSL_ports acl sites_bloqueados url_regex -i "/etc/squid/sites_bloqueados.txt" #acl liberados src "/etc/squid/ips_liberados.txt" http_access deny sites_bloqueados http_access allow localnet http_access allow localhost http_access deny all
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128 iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 3130
Enviado em 27/04/2015 - 15:21h
Pare seu Squid e vamos por partes:Enviado em 27/04/2015 - 15:42h
Olá renato_pacheco,2015/04/27 15:36:59| Startup: Initializing Authentication Schemes ... 2015/04/27 15:36:59| Startup: Initialized Authentication Scheme 'basic' 2015/04/27 15:36:59| Startup: Initialized Authentication Scheme 'digest' 2015/04/27 15:36:59| Startup: Initialized Authentication Scheme 'negotiate' 2015/04/27 15:36:59| Startup: Initialized Authentication Scheme 'ntlm' 2015/04/27 15:36:59| Startup: Initialized Authentication. 2015/04/27 15:36:59| Processing Configuration File: /etc/squid/squid.conf (depth 0) 2015/04/27 15:36:59| Processing: http_port 3128 intercept 2015/04/27 15:36:59| Starting Authentication on port [::]:3128 2015/04/27 15:36:59| Disabling Authentication on port [::]:3128 (interception enabled) 2015/04/27 15:36:59| Processing: https_port 3130 intercept ssl-bump cert=/etc/squid/openssl.crt key=/etc/squid/openssl.key 2015/04/27 15:36:59| Starting Authentication on port [::]:3130 2015/04/27 15:36:59| Disabling Authentication on port [::]:3130 (interception enabled) 2015/04/27 15:36:59| Processing: visible_hostname MIRACULIX 2015/04/27 15:36:59| Processing: always_direct allow all 2015/04/27 15:36:59| Processing: ssl_bump server-first all 2015/04/27 15:36:59| Processing: sslproxy_cert_error allow all 2015/04/27 15:36:59| Processing: sslproxy_flags DONT_VERIFY_PEER 2015/04/27 15:36:59| Processing: sslcrtd_program /usr/lib/squid/ssl_crtd -s /var/lib/ssl_db -M 4MB 2015/04/27 15:36:59| Processing: sslcrtd_children 8 startup=1 idle=1 2015/04/27 15:36:59| Processing: acl QUERY urlpath_regex cgi-bin? 2015/04/27 15:36:59| Processing: no_cache deny QUERY 2015/04/27 15:36:59| Processing: cache_mem 64 MB 2015/04/27 15:36:59| Processing: maximum_object_size_in_memory 64 KB 2015/04/27 15:36:59| Processing: maximum_object_size 512 MB 2015/04/27 15:36:59| Processing: minimum_object_size 0 KB 2015/04/27 15:36:59| Processing: cache_swap_low 90 2015/04/27 15:36:59| Processing: cache_swap_high 95 2015/04/27 15:36:59| Processing: cache_dir ufs /var/spool/squid 2048 16 256 2015/04/27 15:36:59| Processing: cache_mgr thiago.nogueira@prestus.com.br 2015/04/27 15:36:59| Processing: cache_access_log /var/log/squid/access.log 2015/04/27 15:36:59| Processing: cache_log /var/log/squid/access.log 2015/04/27 15:36:59| Processing: access_log stdio:/var/log/squid/access.log squid 2015/04/27 15:36:59| Processing: cache_store_log /var/log/squid/store.log 2015/04/27 15:36:59| Processing: cache_swap_log /var/log/squid/swap.log 2015/04/27 15:36:59| Processing: logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %un %Sh/%<A %mt 2015/04/27 15:36:59| Processing: pid_filename /var/log/squid/squid.pid 2015/04/27 15:36:59| Processing: refresh_pattern ^ftp: 15 20% 2280 2015/04/27 15:36:59| Processing: refresh_pattern ^gopher: 15 0% 2280 2015/04/27 15:36:59| Processing: refresh_pattern . 15 20% 2280 2015/04/27 15:36:59| Processing: acl SSL_ports port 443 563 2015/04/27 15:36:59| Processing: acl Safe_ports port 21 22 80 443 563 70 210 280 488 59 777 901 8080 1025-65535 2015/04/27 15:36:59| Processing: acl purge method PURGE 2015/04/27 15:36:59| Processing: acl CONNECT method CONNECT 2015/04/27 15:36:59| Processing: acl localnet src 192.168.100.0/24 2015/04/27 15:36:59| Processing: http_access allow purge localhost 2015/04/27 15:36:59| Processing: http_access deny purge 2015/04/27 15:36:59| Processing: http_access deny !Safe_ports 2015/04/27 15:36:59| Processing: http_access deny CONNECT !SSL_ports 2015/04/27 15:36:59| Processing: http_access allow localnet 2015/04/27 15:36:59| Processing: http_access allow localhost 2015/04/27 15:36:59| Processing: http_access deny all 2015/04/27 15:36:59| Initializing https proxy context 2015/04/27 15:36:59| Initializing https_port [::]:3130 SSL context 2015/04/27 15:36:59| Using certificate in /etc/squid/openssl.crt
Enviado em 27/04/2015 - 16:21h
Estava lendo o access.log, e ele possui essa linha repetida várias vezes:Enviado em 27/04/2015 - 16:28h
OK! Segundo passo. Vamos v as configs:Enviado em 27/04/2015 - 16:40h
Fiz isso e tentei até jogar um http_access allow all logo depois das acl, mas não foi assim mesmo. Testando aqui, notei que, com exceção das páginas do Google (Google, Gmail, Drive), nenhuma outra abre, não importando se é por HTTP ou HTTPS. Todas dão ERR_CONNECTION_TIMED_OUT.Enviado em 27/04/2015 - 17:04h
Enviado em 27/04/2015 - 18:08h
A coisa mais estranha que achei foi no cache.log:# ps -aux | grep squid root 19487 0.0 0.2 16316 2476 ? Ss 17:44 0:00 squid proxy 19489 0.0 1.1 20932 11724 ? S 17:44 0:00 (squid-1)
# netstat -antp | grep 3128 tcp6 0 0 :::3128 :::* LISTEN 19489/(squid-1)
Enviado em 28/04/2015 - 09:08h
Cara, é simples: mate todos os processos do Squid antes d subi-lo:killall -9 squid
Enviado em 29/04/2015 - 18:20h
O cache.log está perfeito agora, sem nenhum warning, fatal ou qualquer outro problema, mas está barrando tudo ainda. Mas tem algo que me deixou na dúvida:# netstat -antp | grep 3128 tcp6 0 0 :::3128 :::* LISTEN 16159/(squid-1)
http_port 3128 intercept
http_port 192.168.100.5:3128 intercept
Enviado em 29/04/2015 - 23:34h
Cara, blz, vc viu como tá no access.log? E q tipo d bloqueio aparece no navegador? É a mensagem d bloqueio do squid?Enviado em 30/04/2015 - 11:41h
Amigos boa tarde, atualizei o server e utilizo os mesmo serviços, mas estou aproveitando o Squid.conf da versão 3.1 com pouquíssimas modificações, entretanto não inclui nada para bloquear https, tem algum problema? Pergunto, pq no momento não tenho interesse em atualizar..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
Configurando o Conky para iniciar corretamente no sistema
3 configurações básicas que podem melhorar muito a sua edição pelo editor nano
Como colorir os logs do terminal com ccze
Instalação Microsoft Edge no Linux Mint 22
Como configurar posicionamento e movimento de janelas no Lubuntu (Openbox) com atalhos de teclado
Instalar debian testing (13) "por cima" do debian 12 (3)
meu linux congela [RESOLVIDO] (5)
Preciso atualizar o Vim [RESOLVIDO] (8)
QUERO REVIVER UM COMPUTADOR ANTIGO, MAS TIVE PROBLEMAS COM OS LINUX QU... (9)