Created
December 13, 2014 21:01
-
-
Save AD7six/f4931897f6258e9ad013 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -F | |
# From https://www.cloudflare.com/ips | |
for ip in `curl https://www.cloudflare.com/ips-v4`; do | |
iptables -A INPUT -p tcp -s $ip --dport 80 -j ACCEPT | |
done | |
iptables -A INPUT -p tcp --dport 80 -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment