From Kromonos, 4 Months ago, written in Bash.
Embed
  1. #!/bin/bash
  2. iptables -I INPUT -s 173.245.48.0/20 -j DROP
  3. iptables -I INPUT -s 103.21.244.0/22 -j DROP
  4. iptables -I INPUT -s 103.22.200.0/22 -j DROP
  5. iptables -I INPUT -s 103.31.4.0/22 -j DROP
  6. iptables -I INPUT -s 141.101.64.0/18 -j DROP
  7. iptables -I INPUT -s 108.162.192.0/18 -j DROP
  8. iptables -I INPUT -s 190.93.240.0/20 -j DROP
  9. iptables -I INPUT -s 188.114.96.0/20 -j DROP
  10. iptables -I INPUT -s 197.234.240.0/22 -j DROP
  11. iptables -I INPUT -s 198.41.128.0/17 -j DROP
  12. iptables -I INPUT -s 162.158.0.0/15 -j DROP
  13. iptables -I INPUT -s 104.16.0.0/12 -j DROP
  14. iptables -I INPUT -s 172.64.0.0/13 -j DROP
  15. iptables -I INPUT -s 131.0.72.0/22 -j DROP
  16.  
  17. iptables -I INPUT -d 173.245.48.0/20 -j DROP
  18. iptables -I INPUT -d 103.21.244.0/22 -j DROP
  19. iptables -I INPUT -d 103.22.200.0/22 -j DROP
  20. iptables -I INPUT -d 103.31.4.0/22 -j DROP
  21. iptables -I INPUT -d 141.101.64.0/18 -j DROP
  22. iptables -I INPUT -d 108.162.192.0/18 -j DROP
  23. iptables -I INPUT -d 190.93.240.0/20 -j DROP
  24. iptables -I INPUT -d 188.114.96.0/20 -j DROP
  25. iptables -I INPUT -d 197.234.240.0/22 -j DROP
  26. iptables -I INPUT -d 198.41.128.0/17 -j DROP
  27. iptables -I INPUT -d 162.158.0.0/15 -j DROP
  28. iptables -I INPUT -d 104.16.0.0/12 -j DROP
  29. iptables -I INPUT -d 172.64.0.0/13 -j DROP
  30. iptables -I INPUT -d 131.0.72.0/22 -j DROP
  31.  
  32. ip6tables -I INPUT -s 2400:cb00::/32 -j DROP
  33. ip6tables -I INPUT -s 2606:4700::/32 -j DROP
  34. ip6tables -I INPUT -s 2803:f800::/32 -j DROP
  35. ip6tables -I INPUT -s 2405:b500::/32 -j DROP
  36. ip6tables -I INPUT -s 2405:8100::/32 -j DROP
  37. ip6tables -I INPUT -s 2a06:98c0::/29 -j DROP
  38. ip6tables -I INPUT -s 2c0f:f248::/32 -j DROP
  39.  
  40. ip6tables -I INPUT -d 2400:cb00::/32 -j DROP
  41. ip6tables -I INPUT -d 2606:4700::/32 -j DROP
  42. ip6tables -I INPUT -d 2803:f800::/32 -j DROP
  43. ip6tables -I INPUT -d 2405:b500::/32 -j DROP
  44. ip6tables -I INPUT -d 2405:8100::/32 -j DROP
  45. ip6tables -I INPUT -d 2a06:98c0::/29 -j DROP
  46. ip6tables -I INPUT -d 2c0f:f248::/32 -j DROP