Wednesday, December 16, 2009

iptables rules for Anti Social-Net on Linux

List of IP addresses used by most popular social-networking sites:

69.63.181.11, fb1
69.63.181.12, fb2
69.63.181.15, fb3
69.63.181.16, fb4
69.63.187.17, fb5
69.63.187.19, fb6
69.63.184.142, fb7
69.63.186.30, fb8
69.63.184.31, fb9
69.63.184.28, fb10
69.63.184.30, fb11
69.63.184.31, fb12
216.86.150.58, plurk
168.143.162.36, twitter

Pseudo code:
<foreach ip above> do {
       sudo iptables -A OUTBOUND -d <ip>/32 -j DROP
}

For firestarter, DROP is replaced with LSO

The above steps will create outbound firewall.

No comments:

Post a Comment