Blok facebook dengan iptables

July 12, 2013 at 6:24 am Leave a comment


Langsung saja

Ini sumber aslinya tidak saya cantumkan karena lupa… hehehe

Saya tambahkan beberapa ip facebook untuk di blok

 

FACEBOOK_ALLOW=”192.168.1.10 192.168.1.190″
iptables -N FACEBOOK

iptables -I FORWARD -m tcp -p tcp -d 31.13.82.1 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d 69.171.228.24 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d 173.252.110.27 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d 31.13.79.1 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d 173.252.73.52 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d 173.252.102.241 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d edge-star-ecmp-04-sin1.facebook.com -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d edge-star-ecmp-04-sjc1.facebook.com -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d edge-star-ecmp-03-sjc1.facebook.com -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d edge-star-ecmp-02-hkg1.facebook.com -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d channel-ecmp-13-prn1.facebook.com -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -d edge-star-ecmp-01-hkg1.facebook.com -j FACEBOOK

## FACEBOOK ALLOW
for face in $FACEBOOK_ALLOW; do
iptables -A FACEBOOK -s $face -j ACCEPT
done
iptables -A FACEBOOK -m time –timestart 09:00 –timestop 18:00 -j REJECT

Advertisements

Entry filed under: Ubuntu. Tags: , , , .

SETTING MIKROTIK RB951-2N Berselancar Motor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


VIEWED - Dilihat

  • 86,954 times - kali

CALENDAR – Kalender

July 2013
M T W T F S S
« Jun   Feb »
1234567
891011121314
15161718192021
22232425262728
293031  

ARCHIVES – Arsip

ads1

(adsbygoogle = window.adsbygoogle || []).push({});

%d bloggers like this: