You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

214 lines
10 KiB

  1. config banip 'global'
  2. option ban_enabled '0'
  3. option ban_automatic '1'
  4. option ban_fetchutil 'uclient-fetch'
  5. option ban_iface 'wan'
  6. config banip 'extra'
  7. option ban_debug '0'
  8. option ban_backup '0'
  9. option ban_maxqueue '4'
  10. config source 'whitelist'
  11. option ban_src '/etc/banip/banip.whitelist'
  12. option ban_src_6 '/etc/banip/banip.whitelist'
  13. option ban_src_desc 'Always allow these IPs (IPv4/IPv6)'
  14. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add whitelist \"\$1}'
  15. option ban_src_rset_6 '/^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(:\/[0-9]{1,2})?([[:space:]]|$)/{print \"add whitelist_6 \"\$1}'
  16. option ban_src_settype 'net'
  17. option ban_src_ruletype 'src+dst'
  18. option ban_src_on '1'
  19. option ban_src_on_6 '0'
  20. config source 'blacklist'
  21. option ban_src '/etc/banip/banip.blacklist'
  22. option ban_src_6 '/etc/banip/banip.blacklist'
  23. option ban_src_desc 'Always deny these IPs (IPv4/IPv6)'
  24. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add blacklist \"\$1}'
  25. option ban_src_rset_6 '/^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(:\/[0-9]{1,2})?([[:space:]]|$)/{print \"add blacklist_6 \"\$1}'
  26. option ban_src_settype 'net'
  27. option ban_src_ruletype 'src+dst'
  28. option ban_src_on '0'
  29. option ban_src_on_6 '0'
  30. config source 'bogon'
  31. option ban_src 'https://www.team-cymru.org/Services/Bogons/fullbogons-ipv4.txt'
  32. option ban_src_6 'https://www.team-cymru.org/Services/Bogons/fullbogons-ipv6.txt'
  33. option ban_src_desc 'Bogon prefixes, plus prefixes that have been allocated to RIRs but not yet assigned to ISPs (IPv4/IPv6)'
  34. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add bogon \"\$1}'
  35. option ban_src_rset_6 '/^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(:\/[0-9]{1,2})?([[:space:]]|$)/{print \"add bogon_6 \"\$1}'
  36. option ban_src_settype 'net'
  37. option ban_src_ruletype 'src+dst'
  38. option ban_src_on '0'
  39. option ban_src_on_6 '0'
  40. config source 'tor'
  41. option ban_src 'https://check.torproject.org/exit-addresses'
  42. option ban_src_desc 'List of Tor Exit Nodes (IPv4)'
  43. option ban_src_rset '/^(ExitAddress ([0-9]{1,3}\.){3}[0-9]{1,3})([[:space:]]|$)/{print \"add tor \"\$2}'
  44. option ban_src_settype 'ip'
  45. option ban_src_ruletype 'src'
  46. option ban_src_on '0'
  47. option ban_src_on_6 '0'
  48. config source 'threat'
  49. option ban_src 'https://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt'
  50. option ban_src_desc 'Emerging Threats (IPv4)'
  51. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add threat \"\$1}'
  52. option ban_src_settype 'net'
  53. option ban_src_ruletype 'src'
  54. option ban_src_on '0'
  55. config source 'debl'
  56. option ban_src 'https://www.blocklist.de/downloads/export-ips_all.txt'
  57. option ban_src_6 'https://www.blocklist.de/downloads/export-ips_all.txt'
  58. option ban_src_desc 'Fail2ban reporting service (IPv4/IPv6)'
  59. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3})([[:space:]]|$)/{print \"add debl \"\$1}'
  60. option ban_src_rset_6 '/^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(:\/[0-9]{1,2})?([[:space:]]|$)/{print \"add debl_6 \"\$1}'
  61. option ban_src_settype 'ip'
  62. option ban_src_ruletype 'src'
  63. option ban_src_on '0'
  64. option ban_src_on_6 '0'
  65. config source 'myip'
  66. option ban_src 'https://www.myip.ms/files/blacklist/general/latest_blacklist.txt'
  67. option ban_src_6 'https://www.myip.ms/files/blacklist/general/latest_blacklist.txt'
  68. option ban_src_desc 'IP blacklist provided by myip.ms (IPv4/IPv6)'
  69. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3})([[:space:]]|$)/{print \"add myip \"\$1}'
  70. option ban_src_rset_6 '/^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(:\/[0-9]{1,2})?([[:space:]]|$)/{print \"add myip_6 \"\$1}'
  71. option ban_src_settype 'ip'
  72. option ban_src_ruletype 'src'
  73. option ban_src_on '0'
  74. option ban_src_on_6 '0'
  75. config source 'yoyo'
  76. option ban_src 'http://pgl.yoyo.org/adservers/iplist.php?ipformat=plain&showintro=0&mimetype=plaintext'
  77. option ban_src_desc 'IP blocklist provided by Peter Lowe (IPv4)'
  78. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3})([[:space:]]|$)/{print \"add yoyo \"\$1}'
  79. option ban_src_settype 'ip'
  80. option ban_src_ruletype 'src'
  81. option ban_src_on '0'
  82. config source 'sslbl'
  83. option ban_src 'https://sslbl.abuse.ch/blacklist/sslipblacklist.csv'
  84. option ban_src_desc 'SSL Blacklist by abuse.ch (IPv4)'
  85. option ban_src_rset 'BEGIN{FS=\",\"}/(([0-9]{1,3}\.){3}[0-9]{1,3},).*/{print \"add sslbl \"\$2}'
  86. option ban_src_settype 'ip'
  87. option ban_src_ruletype 'src'
  88. option ban_src_on '0'
  89. config source 'ransomware'
  90. option ban_src 'https://ransomwaretracker.abuse.ch/downloads/RW_IPBL.txt'
  91. option ban_src_desc 'Ransomware Tracker by abuse.ch (IPv4)'
  92. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3})([[:space:]]|$)/{print \"add ransomware \"\$1}'
  93. option ban_src_settype 'ip'
  94. option ban_src_ruletype 'src'
  95. option ban_src_on '0'
  96. config source 'feodo'
  97. option ban_src 'https://feodotracker.abuse.ch/downloads/ipblocklist.txt'
  98. option ban_src_desc 'Feodo Tracker by abuse.ch (IPv4)'
  99. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3})([[:space:]]|$)/{print \"add feodo \"\$1}'
  100. option ban_src_settype 'ip'
  101. option ban_src_ruletype 'src'
  102. option ban_src_on '0'
  103. config source 'dshield'
  104. option ban_src 'http://feeds.dshield.org/block.txt'
  105. option ban_src_desc 'Dshield recommended IP blocklist. Contains top 20 attacking class C subnets (IPv4)'
  106. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3})([[:space:]]|$)/{print \"add dshield \"\$1 \"/\"\$3}'
  107. option ban_src_settype 'net'
  108. option ban_src_ruletype 'src'
  109. option ban_src_on '0'
  110. config source 'proxy'
  111. option ban_src 'https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/proxylists.ipset'
  112. option ban_src_desc 'List of Open Proxies (IPv4)'
  113. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3})([[:space:]]|$)/{print \"add proxy \"\$1}'
  114. option ban_src_settype 'ip'
  115. option ban_src_ruletype 'src'
  116. option ban_src_on '0'
  117. config source 'iblocklist'
  118. option ban_src 'http://list.iblocklist.com/?list=dgxtneitpuvgqqcpfulq&fileformat=cidr&archiveformat=gz'
  119. option ban_src_desc 'Contains advertising trackers and a short list of bad/intrusive porn sites (IPv4)'
  120. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add iblocklist \"\$1}'
  121. option ban_src_settype 'net'
  122. option ban_src_ruletype 'src'
  123. option ban_src_on '0'
  124. config source 'drop'
  125. option ban_src 'https://www.spamhaus.org/drop/drop.txt'
  126. option ban_src_6 'https://www.spamhaus.org/drop/dropv6.txt'
  127. option ban_src_desc 'Spamhaus drop compilation (IPv4/IPv6)'
  128. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add drop \"\$1}'
  129. option ban_src_rset_6 '/^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(:\/[0-9]{1,2})?([[:space:]]|$)/{print \"add drop_6 \"\$1}'
  130. option ban_src_settype 'net'
  131. option ban_src_ruletype 'src'
  132. option ban_src_on '0'
  133. option ban_src_on_6 '0'
  134. config source 'edrop'
  135. option ban_src 'https://www.spamhaus.org/drop/edrop.txt'
  136. option ban_src_desc 'Spamhaus edrop compilation (IPv4)'
  137. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add edrop \"\$1}'
  138. option ban_src_settype 'net'
  139. option ban_src_ruletype 'src'
  140. option ban_src_on '0'
  141. config source 'firehol1'
  142. option ban_src 'https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset'
  143. option ban_src_desc 'Firehol Level 1 compilation. Contains bogons, spamhaus drop and edrop, dshield and malware lists (IPv4)'
  144. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add firehol1 \"\$1}'
  145. option ban_src_settype 'net'
  146. option ban_src_ruletype 'src'
  147. option ban_src_on '0'
  148. config source 'firehol2'
  149. option ban_src 'https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level2.netset'
  150. option ban_src_desc 'Firehol Level 2 compilation. Contains blocklists that track attacks, during the last 48 hours (IPv4)'
  151. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add firehol2 \"\$1}'
  152. option ban_src_settype 'net'
  153. option ban_src_ruletype 'src'
  154. option ban_src_on '0'
  155. config source 'firehol3'
  156. option ban_src 'https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level3.netset'
  157. option ban_src_desc 'Firehol Level 3 compilation. Contains blocklists that track attacks, spyware and viruses (IPv4)'
  158. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add firehol3 \"\$1}'
  159. option ban_src_settype 'net'
  160. option ban_src_ruletype 'src'
  161. option ban_src_on '0'
  162. config source 'firehol4'
  163. option ban_src 'https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level4.netset'
  164. option ban_src_desc 'Firehol Level 4 compilation. May include a large number of false positives (IPv4)'
  165. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add firehol4 \"\$1}'
  166. option ban_src_settype 'net'
  167. option ban_src_ruletype 'src'
  168. option ban_src_on '0'
  169. config source 'country'
  170. option ban_src 'https://stat.ripe.net/data/country-resource-list/data.json?resource='
  171. option ban_src_6 'https://stat.ripe.net/data/country-resource-list/data.json?resource='
  172. option ban_src_desc 'Build a dynamic IPSet by country iso codes based on RIPE data (IPv4/IPv6)'
  173. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add country \"\$1}'
  174. option ban_src_rset_6 '/^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(:\/[0-9]{1,2})?([[:space:]]|$)/{print \"add country_6 \"\$1}'
  175. list ban_src_cat 'de'
  176. option ban_src_settype 'net'
  177. option ban_src_ruletype 'src'
  178. option ban_src_on '0'
  179. option ban_src_on_6 '0'
  180. config source 'asn'
  181. option ban_src 'https://stat.ripe.net/data/announced-prefixes/data.json?resource='
  182. option ban_src_6 'https://stat.ripe.net/data/announced-prefixes/data.json?resource='
  183. option ban_src_desc 'Build a dynamic IPSet by ASN numbers based on RIPE data (IPv4/IPv6)'
  184. option ban_src_rset '/^(([0-9]{1,3}\.){3}[0-9]{1,3}(\/[0-9]{1,2})?)([[:space:]]|$)/{print \"add asn \"\$1}'
  185. option ban_src_rset_6 '/^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}(:\/[0-9]{1,2})?([[:space:]]|$)/{print \"add asn_6 \"\$1}'
  186. list ban_src_cat '32934'
  187. option ban_src_settype 'net'
  188. option ban_src_ruletype 'src'
  189. option ban_src_on '0'
  190. option ban_src_on_6 '0'