agosto 7th, 2014
bloqueio internacional
bloqueioInternet () {
echo "- bloqueio INTERNACIONAL para $1"
/sbin/iptables -I FORWARD -d $1 -j DROP
/sbin/iptables -I FORWARD -s 177.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 186.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 187.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 189.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 200.0.0.0/8 -d $1 -j ACCEPT
/sbin/iptables -I FORWARD -s 201.0.0.0/8 -d $1 -j ACCEPT
}