[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lista de sites para bloquear






2010/11/24 Leandro Moreira <leandro@leandromoreira.eti.br>
Caros,
Alguem  pode me indicar algum lugar que possa baixar uma lista de sites para bloquear no squid (porno, malware, virus e etc )

Att.

--
Leandro Moreira
Network Administrator
LPIC1 - Linux Professional Institute Certified
e-mail/msn: leandro@leandromoreira.eti.br
Tel.: + 55(32) 9906-5713

###############################################################
# Script de Firewall
# Funcao: Baixar a DROP LIST da Spamhaus e aplicar as regras
#         com o iptables
# Autor: Dailson Fernandes - contato@dailson.com.br
# Data: 10/06/2008
# Obs: Este script esta sob a GNU/GPL
#      http://www.dailson.com.br
#################################################################
# Apaga os arquivos atuais
cd /etc/firewall/
rm -f drop.lasso* black_list

# Baixa a nova versao e gera o arquivo

cd /etc/firewall/

wget http://www.spamhaus.org/drop/drop.lasso ; cat drop.lasso | cut -d" " -f1 | tr -d ";" | grep -v "^$" > black_list

# Ordena e retira ips repetidos
echo "$(sort black_list | uniq )" > black_list

# Aplica as regras ao Iptables
for ip in `cat black_list`
do
        $IPTABLES -I FORWARD -p tcp -s $ip -j DROP
        $IPTABLES -I FORWARD -p udp -s $ip -j DROP
        $IPTABLES -I INPUT -p tcp -s $ip -j DROP
        $IPTABLES -I INPUT -p udp -s $ip -j DROP
done

wget -O - http://malware.hiperlinks.com.br/cgi/submit?action=""> > /etc/squid/malware_block_list.txt
sed "s/mte/naobloquear/g" /etc/squid/malware_block_list.txt >/etc/squid/malware_block_list.new
mv /etc/squid/malware_block_list.new /etc/squid/malware_block_list.txt
squid -k reconfigure

Atenciosamente,

--
__________________________________________
Márcio Inácio Silva -
marciois@gmail.com

Assinem já a melhor e maior série de ficção cientifica do mundo!
Acesse http://www.perry-rhodan.com.br
     .~.
    / v \   Seja Livre, use GNU/Linux! 
  / (   ) \
 ^^-^^       GNU/Debian/Linux

Reply to: