Enviado em 14/03/2013 - 14:18h
Olá pessoal, montei um m firewall com iptables + squid para mim estudar, está tudo funcionando ok, mas estou com dificuldade para criar as regras dentro do squid, ele não apresenta nenhum erro, acredito que eu poça estar liberando tudo depois das regras, se alguem puder me dar um auxilio ou me indicar tópicos de estudo sobre squid. Vou postar meu squid aqui. vlwhttp_port 3128 transparent visible_hostname Srvfwl acl manager proto cache_object acl localhost src 10.0.0.0/24 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 acl SSL_ports port 443 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 http_access deny !Safe_ports http_access deny CONNECT !SSL_ports # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS # acl redelocal src 10.1.1.0/24 acl teste src 10.1.1.107 acl bloqueio url_regex -i "/etc/squid/regras/bloqueados" http_access allow teste !bloqueio # We recommend you to use at least the following line. hierarchy_stoplist cgi-bin ? # Uncomment and adjust the following to add a disk cache directory. cache_dir ufs /var/spool/squid 512 16 256 # Leave coredumps in the first cache dir # Add any of your own refresh_pattern entries above these. 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
Enviado em 14/03/2013 - 14:56h
Adicionei elas depois das acl de bloqueio, seria isto?Enviado em 14/03/2013 - 15:02h
http_port 3128 transparentEnviado em 14/03/2013 - 15:07h
Nenhum erro, mas os sites que eram para bloquear naquele ip não bloqueiam. Acho q as iptables estão liberando o acesso, sei lah.Enviado em 14/03/2013 - 15:16h
Sim sim, se eu vou no google e pesquiso facebook ou youtube(sites que era para estar bloqueado) ele não bloqueia a pesquisa.Enviado em 14/03/2013 - 15:18h
Ele não vai bloquear a pesquisa...Enviado em 14/03/2013 - 16:28h
#!/bin/bashEnviado em 14/03/2013 - 16:28h
tux-gpt - Assistente de IA para o Terminal
Instalação e configuração do Chrony
Programa IRPF - Guia de Instalação e Resolução de alguns Problemas
O Que Fazer Após Instalar Ubuntu 25.04
O Que Fazer Após Instalar Fedora 42
Debian 12 -- Errata - Correções de segurança
Instalando o Pi-Hole versão v5.18.4 depois do lançamento da versão v6.0
Alguém poderia me ajudar a escolher peças pra montar um desktop? (22)
Pra quem contribui com artigos e dicas (2)
Copiar Layout do Teclado para aplicar em outra Distribuição (2)