easy way to block facebook 2

block FBAnother rule from iptables to block facebook

#iptables -A FORWARD -p tcp –dport 80 -d 66.220.144.0/20 -j DROP
#iptables -A FORWARD -p tcp –dport 80 -d 69.63.176.0/20 -j DROP
#iptables -A FORWARD -p tcp –dport 443 -d 66.220.144.0/20 -j DROP
#iptables -A FORWARD -p tcp –dport 443 -d 69.63.176.0/20 -j DROP

#iptables -A FORWARD -p tcp –dport 80 -d www.facebook.com -j DROP
#iptables -A FORWARD -p tcp –dport 443 -d www.facebook.com -j DROP
#iptables -A FORWARD -p tcp –dport 80 -d facebook.com -j DROP
#iptables -A FORWARD -p tcp –dport 443 -d facebook.com -j DROP
#iptables -A FORWARD -p tcp –dport 80 -d www.facebook.com.edgesuite.net -j DROP
#iptables -A FORWARD -p tcp –dport 443 -d www.facebook.com.edgesuite.net -j DROP

#iptables -I FORWARD -s IP_allowed -p tcp –dport 80 -d 66.220.144.0/20 -j ACCEPT
#iptables -I FORWARD -s IP_allowed -p tcp –dport 80 -d 69.63.176.0/20 -j ACCEPT
#iptables -I FORWARD -s IP_allowed -p tcp –dport 443 -d 66.220.144.0/20 -j ACCEPT
#iptables -I FORWARD -s IP_allowed -p tcp –dport 443 -d 69.63.176.0/20 -j ACCEPT

#iptables -I FORWARD -s allowed -p tcp –dport 443 -d www.facebook.com -j ACCEPT
#iptables -I FORWARD -s IP_allowed -p tcp –dport 443 -d www.facebook.com -j ACCEPT
#iptables -I FORWARD -s IP_allowed -p tcp –dport 443 -d www.facebook.com -j ACCEPT
#iptables -I FORWARD -s IP_allowed -p tcp –dport 443 -d www.facebook.com -j ACCEPT
#iptables -I FORWARD -s IP_allowed -p tcp –dport 443 -d www.facebook.com.edgesuite.net -j ACCEPT
#iptables -I FORWARD -s IP_allowed -p tcp –dport 443 -d www.facebook.com.edgesuite.net -j ACCEPT

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.