From Kromonos, 3 Weeks ago, written in Bash.
Embed
  1. #!/bin/bash
  2.  
  3. iptables -D INPUT -j block-MTN-Africa
  4. ip6tables -D INPUT -j block-MTN-Africa
  5.  
  6. iptables -F block-MTN-Africa
  7. ip6tables -F block-MTN-Africa
  8. iptables -X block-MTN-Africa
  9. ip6tables -X block-MTN-Africa
  10.  
  11. iptables -N block-MTN-Africa
  12. ip6tables -N block-MTN-Africa
  13.  
  14. iptables -A block-MTN-Africa -s 216.0.52.0/23 -j REJECT
  15. iptables -A block-MTN-Africa -s 196.20.0.0/19 -j REJECT
  16. iptables -A block-MTN-Africa -s 105.208.199.0/24 -j REJECT
  17. iptables -A block-MTN-Africa -s 192.96.87.0/24 -j REJECT
  18. iptables -A block-MTN-Africa -s 196.30.181.0/24 -j REJECT
  19. iptables -A block-MTN-Africa -s 192.96.147.0/24 -j REJECT
  20. iptables -A block-MTN-Africa -s 196.31.224.0/20 -j REJECT
  21. iptables -A block-MTN-Africa -s 196.4.104.0/22 -j REJECT
  22. iptables -A block-MTN-Africa -s 41.113.0.0/16 -j REJECT
  23. iptables -A block-MTN-Africa -s 209.212.96.0/19 -j REJECT
  24. iptables -A block-MTN-Africa -s 41.208.0.0/18 -j REJECT
  25. iptables -A block-MTN-Africa -s 165.125.179.0/24 -j REJECT
  26. iptables -A block-MTN-Africa -s 216.5.0.0/21 -j REJECT
  27. iptables -A block-MTN-Africa -s 196.61.208.0/21 -j REJECT
  28. iptables -A block-MTN-Africa -s 196.20.9.0/24 -j REJECT
  29. iptables -A block-MTN-Africa -s 196.11.212.0/24 -j REJECT
  30. iptables -A block-MTN-Africa -s 192.231.254.0/24 -j REJECT
  31. iptables -A block-MTN-Africa -s 41.195.0.0/16 -j REJECT
  32. iptables -A block-MTN-Africa -s 105.208.202.0/24 -j REJECT
  33. iptables -A block-MTN-Africa -s 196.13.228.0/22 -j REJECT
  34. iptables -A block-MTN-Africa -s 196.3.111.0/24 -j REJECT
  35. iptables -A block-MTN-Africa -s 105.216.252.0/24 -j REJECT
  36. iptables -A block-MTN-Africa -s 196.4.100.0/22 -j REJECT
  37. iptables -A block-MTN-Africa -s 105.208.0.0/12 -j REJECT
  38. iptables -A block-MTN-Africa -s 196.31.191.0/24 -j REJECT
  39. iptables -A block-MTN-Africa -s 192.96.98.0/23 -j REJECT
  40. iptables -A block-MTN-Africa -s 196.11.120.0/23 -j REJECT
  41. iptables -A block-MTN-Africa -s 196.44.6.0/24 -j REJECT
  42. iptables -A block-MTN-Africa -s 196.4.86.0/24 -j REJECT
  43. iptables -A block-MTN-Africa -s 196.29.151.0/24 -j REJECT
  44. iptables -A block-MTN-Africa -s 66.8.0.0/17 -j REJECT
  45. iptables -A block-MTN-Africa -s 41.112.0.0/12 -j REJECT
  46. iptables -A block-MTN-Africa -s 41.208.45.0/24 -j REJECT
  47. iptables -A block-MTN-Africa -s 105.211.0.0/16 -j REJECT
  48. iptables -A block-MTN-Africa -s 196.3.224.0/19 -j REJECT
  49. iptables -A block-MTN-Africa -s 196.22.64.0/18 -j REJECT
  50. iptables -A block-MTN-Africa -s 196.4.88.0/24 -j REJECT
  51. ip6tables -A block-MTN-Africa -s 2001:4260:5800::/38 -j REJECT
  52. iptables -A block-MTN-Africa -s 196.11.116.0/22 -j REJECT
  53. iptables -A block-MTN-Africa -s 196.11.246.0/24 -j REJECT
  54. iptables -A block-MTN-Africa -s 196.47.60.0/23 -j REJECT
  55. iptables -A block-MTN-Africa -s 196.41.160.0/19 -j REJECT
  56. iptables -A block-MTN-Africa -s 196.30.0.0/15 -j REJECT
  57. iptables -A block-MTN-Africa -s 216.2.176.0/21 -j REJECT
  58. iptables -A block-MTN-Africa -s 105.208.0.0/16 -j REJECT
  59. iptables -A block-MTN-Africa -s 105.208.201.0/24 -j REJECT
  60. iptables -A block-MTN-Africa -s 196.4.78.0/24 -j REJECT
  61. iptables -A block-MTN-Africa -s 196.4.88.0/22 -j REJECT
  62. iptables -A block-MTN-Africa -s 196.47.0.0/18 -j REJECT
  63. iptables -A block-MTN-Africa -s 216.0.48.0/24 -j REJECT
  64. iptables -A block-MTN-Africa -s 196.1.128.0/23 -j REJECT
  65. iptables -A block-MTN-Africa -s 196.7.240.0/20 -j REJECT
  66. iptables -A block-MTN-Africa -s 196.15.6.0/23 -j REJECT
  67. iptables -A block-MTN-Africa -s 105.208.193.0/24 -j REJECT
  68. iptables -A block-MTN-Africa -s 192.96.88.0/24 -j REJECT
  69. ip6tables -A block-MTN-Africa -s 2001:4218::/32 -j REJECT
  70. iptables -A block-MTN-Africa -s 105.208.205.0/24 -j REJECT
  71. iptables -A block-MTN-Africa -s 102.69.212.0/22 -j REJECT
  72. iptables -A block-MTN-Africa -s 196.22.66.0/24 -j REJECT
  73. iptables -A block-MTN-Africa -s 152.108.212.0/24 -j REJECT
  74. iptables -A block-MTN-Africa -s 196.11.238.0/24 -j REJECT
  75. iptables -A block-MTN-Africa -s 105.177.8.0/24 -j REJECT
  76. iptables -A block-MTN-Africa -s 105.236.0.0/16 -j REJECT
  77. iptables -A block-MTN-Africa -s 105.208.198.0/24 -j REJECT
  78. iptables -A block-MTN-Africa -s 41.208.29.0/24 -j REJECT
  79. iptables -A block-MTN-Africa -s 105.237.0.0/16 -j REJECT
  80. iptables -A block-MTN-Africa -s 41.208.2.0/24 -j REJECT
  81. iptables -A block-MTN-Africa -s 41.181.0.0/16 -j REJECT
  82. iptables -A block-MTN-Africa -s 216.0.50.0/24 -j REJECT
  83. iptables -A block-MTN-Africa -s 216.5.192.0/21 -j REJECT
  84. iptables -A block-MTN-Africa -s 196.7.0.0/16 -j REJECT
  85. iptables -A block-MTN-Africa -s 213.193.40.0/21 -j REJECT
  86. iptables -A block-MTN-Africa -s 196.4.92.0/23 -j REJECT
  87. iptables -A block-MTN-Africa -s 196.4.70.0/24 -j REJECT
  88. iptables -A block-MTN-Africa -s 196.11.240.0/22 -j REJECT
  89. iptables -A block-MTN-Africa -s 105.216.0.0/16 -j REJECT
  90. iptables -A block-MTN-Africa -s 196.20.22.0/24 -j REJECT
  91. iptables -A block-MTN-Africa -s 196.4.142.0/23 -j REJECT
  92. iptables -A block-MTN-Africa -s 216.4.160.0/22 -j REJECT
  93. iptables -A block-MTN-Africa -s 196.4.148.0/24 -j REJECT
  94. iptables -A block-MTN-Africa -s 196.4.140.0/23 -j REJECT
  95. iptables -A block-MTN-Africa -s 102.177.56.0/22 -j REJECT
  96. iptables -A block-MTN-Africa -s 196.31.19.0/24 -j REJECT
  97. iptables -A block-MTN-Africa -s 196.11.232.0/21 -j REJECT
  98. iptables -A block-MTN-Africa -s 196.15.5.0/24 -j REJECT
  99. iptables -A block-MTN-Africa -s 196.20.30.0/24 -j REJECT
  100. iptables -A block-MTN-Africa -s 197.64.0.0/12 -j REJECT
  101. iptables -A block-MTN-Africa -s 105.208.196.0/24 -j REJECT
  102. iptables -A block-MTN-Africa -s 41.208.52.0/23 -j REJECT
  103. iptables -A block-MTN-Africa -s 196.30.133.0/24 -j REJECT
  104. iptables -A block-MTN-Africa -s 105.208.208.0/24 -j REJECT
  105. iptables -A block-MTN-Africa -s 196.31.240.0/21 -j REJECT
  106. iptables -A block-MTN-Africa -s 41.203.0.0/20 -j REJECT
  107. iptables -A block-MTN-Africa -s 41.204.192.0/19 -j REJECT
  108. iptables -A block-MTN-Africa -s 105.236.0.0/15 -j REJECT
  109. iptables -A block-MTN-Africa -s 196.11.108.0/24 -j REJECT
  110. iptables -A block-MTN-Africa -s 105.208.194.0/24 -j REJECT
  111. iptables -A block-MTN-Africa -s 105.208.204.0/24 -j REJECT
  112. iptables -A block-MTN-Africa -s 196.11.106.0/23 -j REJECT
  113. iptables -A block-MTN-Africa -s 105.208.206.0/24 -j REJECT
  114. iptables -A block-MTN-Africa -s 196.4.30.0/23 -j REJECT
  115. iptables -A block-MTN-Africa -s 196.44.0.0/19 -j REJECT
  116. iptables -A block-MTN-Africa -s 213.193.32.0/19 -j REJECT
  117. iptables -A block-MTN-Africa -s 196.4.32.0/22 -j REJECT
  118. iptables -A block-MTN-Africa -s 105.208.192.0/24 -j REJECT
  119. iptables -A block-MTN-Africa -s 105.208.200.0/24 -j REJECT
  120. iptables -A block-MTN-Africa -s 105.210.0.0/16 -j REJECT
  121. iptables -A block-MTN-Africa -s 196.1.102.0/24 -j REJECT
  122. iptables -A block-MTN-Africa -s 198.54.148.0/24 -j REJECT
  123. iptables -A block-MTN-Africa -s 105.208.195.0/24 -j REJECT
  124. iptables -A block-MTN-Africa -s 168.253.26.0/24 -j REJECT
  125. iptables -A block-MTN-Africa -s 196.11.105.0/24 -j REJECT
  126. iptables -A block-MTN-Africa -s 105.208.207.0/24 -j REJECT
  127. ip6tables -A block-MTN-Africa -s 2c0f:fb08::/32 -j REJECT
  128. iptables -A block-MTN-Africa -s 196.3.110.0/24 -j REJECT
  129. iptables -A block-MTN-Africa -s 196.4.144.0/22 -j REJECT
  130. iptables -A block-MTN-Africa -s 105.177.0.0/22 -j REJECT
  131. iptables -A block-MTN-Africa -s 196.4.87.0/24 -j REJECT
  132. iptables -A block-MTN-Africa -s 196.20.4.0/24 -j REJECT
  133. iptables -A block-MTN-Africa -s 196.11.211.0/24 -j REJECT
  134. iptables -A block-MTN-Africa -s 105.208.197.0/24 -j REJECT
  135. iptables -A block-MTN-Africa -s 196.11.56.0/23 -j REJECT
  136. iptables -A block-MTN-Africa -s 105.208.203.0/24 -j REJECT
  137. iptables -A block-MTN-Africa -s 167.229.212.0/24 -j REJECT
  138.  
  139. iptables -A block-MTN-Africa -j RETURN
  140. ip6tables -A block-MTN-Africa -j RETURN
  141.  
  142. iptables -I INPUT 1 -j block-MTN-Africa
  143. ip6tables -I INPUT 1 -j block-MTN-Africa
  144.