scripts

Cloudflare Whitelist

May 26th, 2015
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #!/bin/bash
  2. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 103.21.244.0/22 -j ACCEPT
  3. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 103.22.200.0/22 -j ACCEPT
  4. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 103.31.4.0/22 -j ACCEPT
  5. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 104.16.0.0/12 -j ACCEPT
  6. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 108.162.192.0/18 -j ACCEPT
  7. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 141.101.64.0/18 -j ACCEPT
  8. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 162.158.0.0/15 -j ACCEPT
  9. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 172.64.0.0/13 -j ACCEPT
  10. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 173.245.48.0/20 -j ACCEPT
  11. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 188.114.96.0/20 -j ACCEPT
  12. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 190.93.240.0/20 -j ACCEPT
  13. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 197.234.240.0/22 -j ACCEPT
  14. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 198.41.128.0/17 -j ACCEPT
  15. iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 199.27.128.0/21 -j ACCEPT
  16. iptables -A INPUT -p tcp --match multiport --dports 80,443 -j DROP
Advertisement
Add Comment
Please, Sign In to add comment