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.

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