mrdkoid banovatko.sh
  1. #!/bin/sh
  2.  
  3. # block Blobster and Piolet from downloading the initial peer list
  4. iptables -I FORWARD -i eth0 -p tcp --dport 80 -d 128.121.0.0/16 -j REJECT
  5.  
  6. # block eDonkey
  7. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 4662 -j DNAT --to-destination 192.168.1.1
  8. iptables -t nat -A PREROUTING -i eth0 -p tcp --sport 4662 -j DNAT --to-destination 192.168.1.1
  9.  
  10. # block Limewire, Morpheus, Bearshare
  11. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6346:6347 -j DNAT --to-destination 192.168.1.1
  12. iptables -t nat -A PREROUTING -i eth0 -p tcp --sport 6346:6347 -j DNAT --to-destination 192.168.1.1
  13. iptables -t nat -A PREROUTING -i eth0 -p udp --dport 6346:6347 -j DNAT --to-destination 192.168.1.1
  14. iptables -t nat -A PREROUTING -i eth0 -p udp --sport 6346:6347 -j DNAT --to-destination 192.168.1.1
  15.  
  16. # block eMule
  17. iptables -t nat -A PREROUTING -i eth0 -p udp --dport 4672 -j DNAT --to-destination 192.168.1.1
  18. iptables -t nat -A PREROUTING -i eth0 -p udp --sport 4672 -j DNAT --to-destination 192.168.1.1
  19.  
  20. # block BitTorrent
  21. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6881:6889 -j DNAT --to-destination 192.168.1.1
  22. iptables -t nat -A PREROUTING -i eth0 -p tcp --sport 6881:6889 -j DNAT --to-destination 192.168.1.1
  23. iptables -t nat -A PREROUTING -i eth0 -p udp --dport 6881:6889 -j DNAT --to-destination 192.168.1.1
  24. iptables -t nat -A PREROUTING -i eth0 -p udp --sport 6881:6889 -j DNAT --to-destination 192.168.1.1
  25.  
  26. # block WinMx
  27. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6699 -j DNAT --to-destination 192.168.1.1
  28. iptables -t nat -A PREROUTING -i eth0 -p tcp --sport 6699 -j DNAT --to-destination 192.168.1.1
  29. iptables -t nat -A PREROUTING -i eth0 -p udp --dport 6699 -j DNAT --to-destination 192.168.1.1
  30. iptables -t nat -A PREROUTING -i eth0 -p udp --sport 6699 -j DNAT --to-destination 192.168.1.1
  31.  
  32.  
  33.  
  34. #blokace do moji site
  35. iptables -t nat -A PREROUTING -d foo.bar.1 -j DNAT --to-destination 192.168.1.1
  36. iptables -t nat -A PREROUTING -d foo.bar.2 -j DNAT --to-destination 192.168.1.1
  37. iptables -t nat -A PREROUTING -d foo.bar.3 -j DNAT --to-destination 192.168.1.1
  38. iptables -t nat -A PREROUTING -d foo.bar.4 -j DNAT --to-destination 192.168.1.1
  39. iptables -t nat -A PREROUTING -d foo.bar.5 -j DNAT --to-destination 192.168.1.1
  40. iptables -t nat -A PREROUTING -d foo.bar.6 -j DNAT --to-destination 192.168.1.1
  41. iptables -t nat -A PREROUTING -d foo.bar.7 -j DNAT --to-destination 192.168.1.1
  42. iptables -t nat -A PREROUTING -d foo.bar.8 -j DNAT --to-destination 192.168.1.1
  43. iptables -t nat -A PREROUTING -d foo.bar.9 -j DNAT --to-destination 192.168.1.1
  44. iptables -t nat -A PREROUTING -d foo.bar.10 -j DNAT --to-destination 192.168.1.1
  45. iptables -t nat -A PREROUTING -d foo.bar.11 -j DNAT --to-destination 192.168.1.1
  46. iptables -t nat -A PREROUTING -d foo.bar.12 -j DNAT --to-destination 192.168.1.1
  47. iptables -t nat -A PREROUTING -d foo.bar.13 -j DNAT --to-destination 192.168.1.1
  48. iptables -t nat -A PREROUTING -d foo.bar.14 -j DNAT --to-destination 192.168.1.1
  49. iptables -t nat -A PREROUTING -d foo.bar.15 -j DNAT --to-destination 192.168.1.1
  50. iptables -t nat -A PREROUTING -d foo.bar.16 -j DNAT --to-destination 192.168.1.1
  51. iptables -t nat -A PREROUTING -d foo.bar.17 -j DNAT --to-destination 192.168.1.1
  52. iptables -t nat -A PREROUTING -d foo.bar.18 -j DNAT --to-destination 192.168.1.1
  53. iptables -t nat -A PREROUTING -d foo.bar.19 -j DNAT --to-destination 192.168.1.1
  54. iptables -t nat -A PREROUTING -d foo.bar.20 -j DNAT --to-destination 192.168.1.1
  55. iptables -t nat -A PREROUTING -d foo.bar.21 -j DNAT --to-destination 192.168.1.1
  56. iptables -t nat -A PREROUTING -d foo.bar.22 -j DNAT --to-destination 192.168.1.1
  57. iptables -t nat -A PREROUTING -d foo.bar.23 -j DNAT --to-destination 192.168.1.1
  58. iptables -t nat -A PREROUTING -d foo.bar.24 -j DNAT --to-destination 192.168.1.1
  59. iptables -t nat -A PREROUTING -d foo.bar.25 -j DNAT --to-destination 192.168.1.1
  60. iptables -t nat -A PREROUTING -d foo.bar.26 -j DNAT --to-destination 192.168.1.1
  61. iptables -t nat -A PREROUTING -d foo.bar.27 -j DNAT --to-destination 192.168.1.1
  62. iptables -t nat -A PREROUTING -d foo.bar.28 -j DNAT --to-destination 192.168.1.1
  63. iptables -t nat -A PREROUTING -d foo.bar.29 -j DNAT --to-destination 192.168.1.1
  64. iptables -t nat -A PREROUTING -d foo.bar.30 -j DNAT --to-destination 192.168.1.1
  65. iptables -t nat -A PREROUTING -d foo.bar.31 -j DNAT --to-destination 192.168.1.1
  66. iptables -t nat -A PREROUTING -d foo.bar.32 -j DNAT --to-destination 192.168.1.1
  67. iptables -t nat -A PREROUTING -d foo.bar.33 -j DNAT --to-destination 192.168.1.1
  68. iptables -t nat -A PREROUTING -d foo.bar.34 -j DNAT --to-destination 192.168.1.1
  69. iptables -t nat -A PREROUTING -d foo.bar.35 -j DNAT --to-destination 192.168.1.1
  70. iptables -t nat -A PREROUTING -d foo.bar.36 -j DNAT --to-destination 192.168.1.1
  71. iptables -t nat -A PREROUTING -d foo.bar.37 -j DNAT --to-destination 192.168.1.1
  72. iptables -t nat -A PREROUTING -d foo.bar.38 -j DNAT --to-destination 192.168.1.1
  73. iptables -t nat -A PREROUTING -d foo.bar.39 -j DNAT --to-destination 192.168.1.1
  74. iptables -t nat -A PREROUTING -d foo.bar.40 -j DNAT --to-destination 192.168.1.1
  75. iptables -t nat -A PREROUTING -d foo.bar.41 -j DNAT --to-destination 192.168.1.1
  76. iptables -t nat -A PREROUTING -d foo.bar.42 -j DNAT --to-destination 192.168.1.1
  77. iptables -t nat -A PREROUTING -d foo.bar.43 -j DNAT --to-destination 192.168.1.1
  78. iptables -t nat -A PREROUTING -d foo.bar.44 -j DNAT --to-destination 192.168.1.1
  79. iptables -t nat -A PREROUTING -d foo.bar.45 -j DNAT --to-destination 192.168.1.1
  80. iptables -t nat -A PREROUTING -d foo.bar.46 -j DNAT --to-destination 192.168.1.1
  81. iptables -t nat -A PREROUTING -d foo.bar.47 -j DNAT --to-destination 192.168.1.1
  82. iptables -t nat -A PREROUTING -d foo.bar.48 -j DNAT --to-destination 192.168.1.1
  83. iptables -t nat -A PREROUTING -d foo.bar.49 -j DNAT --to-destination 192.168.1.1
  84. iptables -t nat -A PREROUTING -d foo.bar.50 -j DNAT --to-destination 192.168.1.1
  85. iptables -t nat -A PREROUTING -d foo.bar.51 -j DNAT --to-destination 192.168.1.1
  86. iptables -t nat -A PREROUTING -d foo.bar.52 -j DNAT --to-destination 192.168.1.1
  87. iptables -t nat -A PREROUTING -d foo.bar.53 -j DNAT --to-destination 192.168.1.1
  88. iptables -t nat -A PREROUTING -d foo.bar.54 -j DNAT --to-destination 192.168.1.1
  89. iptables -t nat -A PREROUTING -d foo.bar.55 -j DNAT --to-destination 192.168.1.1
  90. iptables -t nat -A PREROUTING -d foo.bar.56 -j DNAT --to-destination 192.168.1.1
  91. iptables -t nat -A PREROUTING -d foo.bar.57 -j DNAT --to-destination 192.168.1.1
  92. iptables -t nat -A PREROUTING -d foo.bar.58 -j DNAT --to-destination 192.168.1.1
  93. iptables -t nat -A PREROUTING -d foo.bar.59 -j DNAT --to-destination 192.168.1.1
  94. iptables -t nat -A PREROUTING -d foo.bar.60 -j DNAT --to-destination 192.168.1.1
  95. iptables -t nat -A PREROUTING -d foo.bar.61 -j DNAT --to-destination 192.168.1.1
  96. iptables -t nat -A PREROUTING -d foo.bar.62 -j DNAT --to-destination 192.168.1.1
  97. iptables -t nat -A PREROUTING -d foo.bar.63 -j DNAT --to-destination 192.168.1.1
  98. iptables -t nat -A PREROUTING -d foo.bar.64 -j DNAT --to-destination 192.168.1.1
  99. iptables -t nat -A PREROUTING -d foo.bar.65 -j DNAT --to-destination 192.168.1.1
  100. iptables -t nat -A PREROUTING -d foo.bar.66 -j DNAT --to-destination 192.168.1.1
  101. iptables -t nat -A PREROUTING -d foo.bar.67 -j DNAT --to-destination 192.168.1.1
  102. iptables -t nat -A PREROUTING -d foo.bar.68 -j DNAT --to-destination 192.168.1.1
  103. iptables -t nat -A PREROUTING -d foo.bar.69 -j DNAT --to-destination 192.168.1.1
  104. iptables -t nat -A PREROUTING -d foo.bar.70 -j DNAT --to-destination 192.168.1.1
  105. iptables -t nat -A PREROUTING -d foo.bar.71 -j DNAT --to-destination 192.168.1.1
  106. iptables -t nat -A PREROUTING -d foo.bar.72 -j DNAT --to-destination 192.168.1.1
  107. iptables -t nat -A PREROUTING -d foo.bar.73 -j DNAT --to-destination 192.168.1.1
  108. iptables -t nat -A PREROUTING -d foo.bar.74 -j DNAT --to-destination 192.168.1.1
  109. iptables -t nat -A PREROUTING -d foo.bar.75 -j DNAT --to-destination 192.168.1.1
  110. iptables -t nat -A PREROUTING -d foo.bar.76 -j DNAT --to-destination 192.168.1.1
  111. iptables -t nat -A PREROUTING -d foo.bar.77 -j DNAT --to-destination 192.168.1.1
  112. iptables -t nat -A PREROUTING -d foo.bar.78 -j DNAT --to-destination 192.168.1.1
  113. iptables -t nat -A PREROUTING -d foo.bar.79 -j DNAT --to-destination 192.168.1.1
  114. iptables -t nat -A PREROUTING -d foo.bar.80 -j DNAT --to-destination 192.168.1.1
  115. iptables -t nat -A PREROUTING -d foo.bar.81 -j DNAT --to-destination 192.168.1.1
  116. iptables -t nat -A PREROUTING -d foo.bar.82 -j DNAT --to-destination 192.168.1.1
  117. iptables -t nat -A PREROUTING -d foo.bar.83 -j DNAT --to-destination 192.168.1.1
  118. iptables -t nat -A PREROUTING -d foo.bar.84 -j DNAT --to-destination 192.168.1.1
  119. iptables -t nat -A PREROUTING -d foo.bar.85 -j DNAT --to-destination 192.168.1.1
  120. iptables -t nat -A PREROUTING -d foo.bar.86 -j DNAT --to-destination 192.168.1.1
  121. iptables -t nat -A PREROUTING -d foo.bar.87 -j DNAT --to-destination 192.168.1.1
  122. iptables -t nat -A PREROUTING -d foo.bar.88 -j DNAT --to-destination 192.168.1.1
  123. iptables -t nat -A PREROUTING -d foo.bar.89 -j DNAT --to-destination 192.168.1.1
  124. iptables -t nat -A PREROUTING -d foo.bar.90 -j DNAT --to-destination 192.168.1.1
  125. iptables -t nat -A PREROUTING -d foo.bar.91 -j DNAT --to-destination 192.168.1.1
  126. iptables -t nat -A PREROUTING -d foo.bar.92 -j DNAT --to-destination 192.168.1.1
  127. iptables -t nat -A PREROUTING -d foo.bar.93 -j DNAT --to-destination 192.168.1.1
  128. iptables -t nat -A PREROUTING -d foo.bar.94 -j DNAT --to-destination 192.168.1.1
  129. iptables -t nat -A PREROUTING -d foo.bar.95 -j DNAT --to-destination 192.168.1.1
  130. iptables -t nat -A PREROUTING -d foo.bar.96 -j DNAT --to-destination 192.168.1.1
  131. iptables -t nat -A PREROUTING -d foo.bar.97 -j DNAT --to-destination 192.168.1.1
  132. iptables -t nat -A PREROUTING -d foo.bar.98 -j DNAT --to-destination 192.168.1.1
  133. iptables -t nat -A PREROUTING -d foo.bar.99 -j DNAT --to-destination 192.168.1.1
  134. iptables -t nat -A PREROUTING -d foo.bar.100 -j DNAT --to-destination 192.168.1.1
  135. iptables -t nat -A PREROUTING -d foo.bar.101 -j DNAT --to-destination 192.168.1.1
  136. iptables -t nat -A PREROUTING -d foo.bar.102 -j DNAT --to-destination 192.168.1.1
  137. iptables -t nat -A PREROUTING -d foo.bar.103 -j DNAT --to-destination 192.168.1.1
  138. iptables -t nat -A PREROUTING -d foo.bar.104 -j DNAT --to-destination 192.168.1.1
  139. iptables -t nat -A PREROUTING -d foo.bar.105 -j DNAT --to-destination 192.168.1.1
  140. iptables -t nat -A PREROUTING -d foo.bar.106 -j DNAT --to-destination 192.168.1.1
  141. iptables -t nat -A PREROUTING -d foo.bar.107 -j DNAT --to-destination 192.168.1.1
  142. iptables -t nat -A PREROUTING -d foo.bar.108 -j DNAT --to-destination 192.168.1.1
  143. iptables -t nat -A PREROUTING -d foo.bar.109 -j DNAT --to-destination 192.168.1.1
  144. #iptables -t nat -A PREROUTING -d foo.bar.110 -j DNAT --to-destination 192.168.1.1
  145. iptables -t nat -A PREROUTING -d foo.bar.111 -p tcp --dport 21 -j DNAT --to-destination 192.168.1.1
  146. iptables -t nat -A PREROUTING -d foo.bar.111 -p tcp --dport 23 -j DNAT --to-destination 192.168.1.1
  147. iptables -t nat -A PREROUTING -d foo.bar.111 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.1
  148. #iptables -t nat -A PREROUTING -d foo.bar.111 -p tcp --dport 3333 -j DNAT --to-destination 192.168.1.1
  149. iptables -t nat -A PREROUTING -d foo.bar.112 -j DNAT --to-destination 192.168.1.1
  150.  
  151.  
  152.  
  153. #blokace vybrane domeny
  154. #iptables -t nat -A PREROUTING -d domena.cz -j DNAT --to-destination 192.168.1.1
  155. iptables -t nat -A PREROUTING -d kmplayer.com -j DNAT --to-destination 192.168.1.1
  156.  
  157.  
  158.  
  159. #ostatni bany
  160. iptables -t nat -A PREROUTING -d 111.111.111.111 -j DNAT --to-destination 192.168.1.1
  161.  
Parsed in 0.047 seconds