juno
(usa Linux Mint)
Enviado em 06/06/2012 - 20:08h
use esses no seu script de firewall com iptables
=======================================================================================================
#Bloquenado o facebook
FACEBOOK_ALLOW="192.168.0.254 192.168.7.76 192.168.7.92 192.168.0.1"
$IPT -N FACEBOOK
$IPT -I FORWARD -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 443 -j FACEBOOK
$IPT -I FORWARD -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 443 -j FACEBOOK
$IPT -I FORWARD -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 443 -j FACEBOOK
$IPT -I FORWARD -p tcp -m iprange --dst-range 204.74.64.0-204.74.127.255 --dport 443 -j FACEBOOK
$IPT -I FORWARD -p tcp -m iprange --dst-range 69.171.224.0-69.171.255.255 --dport 443 -j FACEBOOK
## FACEBOOK ALLOW
for face in $FACEBOOK_ALLOW; do
$IPT -I FACEBOOK -s $face -j ACCEPT
done
$IPT -A FACEBOOK -j REJECT
####
####
####
#Bloquenado o hotmail
HOTMAIL_ALLOW="192.168.0.254 192.168.7.76 192.168.7.92 192.168.0.1"
$IPT -N HOTMAIL
$IPT -I FORWARD -p tcp -m iprange --dst-range 64.4.0.0-64.4.10.255 --dport 443 -j HOTMAIL
$IPT -I FORWARD -p tcp -m iprange --dst-range 64.4.17.0-64.4.19.255 --dport 443 -j HOTMAIL
$IPT -I FORWARD -p tcp -m iprange --dst-range 64.4.26.0-64.4.43.255 --dport 443 -j HOTMAIL
$IPT -I FORWARD -p tcp -m iprange --dst-range 64.4.48.0-64.4.53.255 --dport 443 -j HOTMAIL
$IPT -I FORWARD -p tcp -m iprange --dst-range 64.4.60.0-64.4.61.255 --dport 443 -j HOTMAIL
$IPT -I FORWARD -p tcp -m iprange --dst-range 206.138.172.0-206.138.172.255 --dport 443 -j HOTMAIL
## FACEBOOK ALLOW
for face in $HOTMAIL_ALLOW; do
$IPT -I HOTMAIL -s $face -j ACCEPT
done
$IPT -A HOTMAIL -j REJECT
##
==============================================================================================================
Espero ter ajudado!