Skip to content

Instantly share code, notes, and snippets.

@hhc0null
Last active August 29, 2015 14:22
Show Gist options
  • Save hhc0null/f2708029bf814811adcc to your computer and use it in GitHub Desktop.
Save hhc0null/f2708029bf814811adcc to your computer and use it in GitHub Desktop.
iptables rules for shoijn.
# Shojin!
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
# twitter.com.
-A INPUT -s 199.59.148.10 -p tcp -i eth0 -j REJECT
-A INPUT -s 199.59.148.82 -p tcp -i eth0 -j REJECT
-A INPUT -s 199.59.149.198 -p tcp -i eth0 -j REJECT
-A INPUT -s 199.59.149.230 -p tcp -i eth0 -j REJECT
-A INPUT -s 199.59.150.7 -p tcp -i eth0 -j REJECT
-A INPUT -s 199.59.150.39 -p tcp -i eth0 -j REJECT
# facebook.com.
-A INPUT -s 31.13.82.1 -p tcp -i eth0 -j REJECT
COMMIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment