renatomasullo
(usa Ubuntu)
Enviado em 02/04/2024 - 21:07h
Você tem razão.!
Resolvi utilizar com o proxy configurado no navegado!
1 - COM O COMANDO ABAIXO: BLOQUEIA TUDO, SÓ SAI SE COLOCAR O PROXY
iptables -A FORWARD -j DROP
2 -
CONFIGUREI O SQUID DESTA FORMA CONFORME MOSTRA NA AULA DO
Vagner Fonseca
#### ACLs Padrão########
acl SSL_ports port 443
acl SSL_ports port 8443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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
#### Minhas ACLs ########
acl rede_interna src 100.100.100.0/24
acl ip-diretoria src 100.100.100.44-100.100.100.60
acl liberados url_regex -i "/etc/squid/files/liberados.txt"
acl negados_geral url_regex -i "/etc/squid/files/negados_geral.txt"
acl negados_diretoria url_regex -i "/etc/squid/files/negados_diretoria.txt"
##########################
#### Meus HTTP_ACCESS ####
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
#### Meus HTTP_ACCESS ####
http_access allow ip-diretoria !negados_diretoria
http_access allow rede_interna !negados_geral
##########################
http_access deny all
##########################
include /etc/squid/conf.d/*
http_port 8080
coredump_dir /var/spool/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
visible_hostname proxy.teste.local
OBS: SÓ ESTOU FAZENDO ALGUMAS MODIFICAÇÕES!