Skip to content

Instantly share code, notes, and snippets.

@zmaplex
Created October 17, 2017 23:10
Show Gist options
  • Save zmaplex/052380bf86b24e1aae04ba0b568e7308 to your computer and use it in GitHub Desktop.
Save zmaplex/052380bf86b24e1aae04ba0b568e7308 to your computer and use it in GitHub Desktop.
iptables -A INPUT -s 219.158.0.0/16 -p TCP -j DROP
iptables -A OUTPUT -s 219.158.0.0/16 -p TCP -j DROP
iptables -A INPUT -s 202.97.0.0/16 -p TCP -j DROP
iptables -A OUTPUT -s 202.97.0.0/16 -p TCP -j DROP
iptables -A INPUT -s 223.120.0.0/16 -p TCP -j DROP
iptables -A OUTPUT -s 223.120.0.0/16 -p TCP -j DROP
iptables -A INPUT -s 221.176.0.0/16 -p TCP -j DROP
iptables -A OUTPUT -s 221.176.0.0/16 -p TCP -j DROP
iptables -A INPUT -s 221.183.0.0/16 -p TCP -j DROP
iptables -A OUTPUT -s 221.183.0.0/16 -p TCP -j DROP
service iptables save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment