Overview
Find Facebook Subnets
$ whois -h whois.radb.net '!gAS32934'
Block Facebook
#!/bin/bash
for ip in `whois -h whois.radb.net '!gAS32934' | grep /`
do
iptables -A FORWARD -p all -d $ip -j REJECT
done
$ whois -h whois.radb.net '!gAS32934'
#!/bin/bash
for ip in `whois -h whois.radb.net '!gAS32934' | grep /`
do
iptables -A FORWARD -p all -d $ip -j REJECT
done