Last active
January 10, 2020 08:13
-
-
Save moisseev/0aa289310249919baca65817107092af to your computer and use it in GitHub Desktop.
ASN and IP blacklists using multimap. OBSOLETE, up-to-date example: https://github.com/moisseev/rspamd-multimap-bl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16276 # OVH | |
44493 # Chelyabinsk-Signal | |
46606 # UNIFIEDLAYER-AS-1 | |
48666 # MAROSNET Telecommunication Company Network | |
49505 # SELECTEL-NET | |
133165 # DIGITALOCEAN | |
201229 # DIGITALOCEAN | |
202018 # DIGITALOCEAN | |
200130 # DIGITALOCEAN | |
21100 # ITLDC-NL (UA) | |
197695:2 # REGRU-NETWORK | |
198068 # FASTVPS-VE | |
43146:2 # Agava | |
29182 # TheServer-RU, TheFirst-RU clients (WebDC Msk) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95.213.163.164 # six.7dach.ru -> asn:49505 | |
95.213.158.66 # nalogia.ru -> asn:49505 | |
77.244.221.232 # skynet-kazan.com -> asn:49505 | |
95.213.143.204 # smtp.carbonsoft.ru | |
37.187.196.5 # mail.itl-c.com -> asn:16276 | |
198.50.184.125 # mail.freenode.net -> asn:16276 | |
94.250.248.55 # eltex.org -> asn:29182 | |
62.109.0.175 # mail.eltex.nsk.ru -> asn:29182 | |
5.45.112.63 # antennmarket.ru -> asn:198068 | |
185.58.207.135 # milavitsa-market.ru -> asn:48666 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^p\dnlsmtp\d{2}\.shr\.prod\.phx3\.secureserver\.net$/i | |
#/^a\d{1,2}-\d{2}\.smtp-out\.(amazonses|us-west-2)\.com$/i 0.7 | |
/^vm\d{4}\.vps\.agava\.net$/i | |
/^cluster-[a-z]\.mailcontrol\.com$/i # AS44444 Forcepoint Cloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#198.2.132.141 # mb.wixshoutout.com | |
#198.2.187.92 # md.wixshoutout.com | |
188.134.0.200 # mail.interzet.ru | |
195.3.144.64/26 # .ip-colo.net | |
46.61.214.59 # s2.parnas-it.com | |
81.177.18.26 # hgb8.hostingcenter.ru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_BL_EXCL_IP { | |
type = "ip"; | |
map = "$LOCAL_CONFDIR/local.d/bl-excl-ip.map"; | |
score = 0; | |
description = "Sender's IP is excluded from being blacklisted by IP or ASN local blacklists"; | |
} | |
LOCAL_BL_IP { | |
require_symbols = "!LOCAL_BL_EXCL_IP"; | |
type = "ip"; | |
map = "$LOCAL_CONFDIR/local.d/bl-ip.map"; | |
score = 9; | |
description = "Sender's IP is on the local blacklist"; | |
} | |
LOCAL_BL_ASN { | |
require_symbols = "!LOCAL_BL_EXCL_IP"; | |
type = "asn"; | |
map = "$LOCAL_CONFDIR/local.d/bl-asn.map"; | |
score = 9; | |
description = "Sender's ASN is on the local blacklist"; | |
} | |
LOCAL_BL_HOSTNAME { | |
type = "hostname"; | |
map = "$LOCAL_CONFDIR/local.d/bl-hostname.map"; | |
regexp = true; | |
score = 9; | |
description = "Sender's hostname is on the local blacklist"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment