milter-greylist ã® Tarpit æ©è½
é·ããããã¼ã¸ã§ã³ã¢ãããç¡ãã£ã milter-greylist ã§ããã10/11 ã« Ver. 4.4 ããªãªã¼ã¹ãã*1ãé·ãéãéçºçæ±ãã ã£ã Ver 4.3 ç³»ã«å®è£ ãããæ©è½ãããªãªã¼ã¹çã¨ãªãã¾ããã
milter-greylist ã® Tarpit æ©è½ã¯ãmilter-manager ã®éçºã«æºãã£ã¦ãããæ ªå¼ä¼ç¤¾ã¯ãªã¢ã³ã¼ãã®é è¤åå¹³ãããä½æãããããã§ãVer. 4.3.4 ã§ãã¼ã¸ããã¾ãã*2ããã®æ©è½ãããªãªã¼ã¹çã§ä½¿ããããã«ãªã£ããã¨ãããã¨ã§ãå®éã«åä½ã確èªãã¦ã¿ã¾ããã
Tarpitting ã¨ã¯
èªæºã¯ãtar pitãã§ãæ¥æ¬èªã«è¨³ãã¨ãã¿ã¼ã«æãã§ãã¿ã¼ã«ç¶ã®ç©ã貯ã¾ã£ã¦ãããããªã¨ãããæãããã§ãã
spam 対çã§ã® Tarpitting ã¯ãéä¿¡ç¸æã«å¯¾ãã¦ãããã¨ã¬ã¹ãã³ã¹ãé ããã¾ããéä¿¡ç¸æãæ®éã®ãµã¼ãã§ããã°ãååä½ã§ã¬ã¹ãã³ã¹ãè¿ã£ã¦ããªãã¦ããã³ãã¯ã·ã§ã³ãåããããããªäºã¯ããã¾ããã
ããããspammer ã®ç«å ´ã«ç«ã¤ã¨ãã§ããã ãå¤ãã®ã¡ã¼ã«ãéä¿¡ããã訳ã§ãããããããªã¬ã¹ãã³ã¹ã®é ããµã¼ãã¸ã®éä¿¡ã¯ãã£ãã¨æã¡åã£ã¦ã次ã®å®å ã¸éä¿¡ããæ¹ãè¯ããã¨ãããã¨ã«ãªãã¾ãã
ä¸è¬ç㪠Greylisting ã§ã¯ãSMTP ã®ã¬ã¹ãã³ã¹ã§ã¹ãã¼ã¿ã¹ãä¸æã¨ã©ã¼ã¨ãã¦ããåéãã¦ãããï¼ãã確èªããã®ã«å¯¾ããé ãã¬ã¹ãã³ã¹ã«å¯¾ãã¦ãå¾ ã¡ããããã©ããï¼ãã試ãã®ã Tarpitting ã§ãã
milter-greylist 㧠Tarpitting
åé ã®æå¾ã«æ¸ããããã«ããç¸æãã¾ã£ã¨ãã ã£ããããããªãã¯ããã¨ããäºãå®éã«è©¦ãã¦æ§åãè¦ããã¨ããç¹ã§ã¯ Greylisting ã Tarpitting ãåãã§ãããªã®ã§ãTarpitting åç¬ã§ã®æåã¯ãä¸è¨ã®ããã«ãªãã¾ãã
- ç¸æããã®è¦æ±ã«å¯¾ãã¦ãä¸å®æéãä¸åã®å¿çãè¿ããªãã
- ãããç¸æãã³ãã¯ã·ã§ã³ãåæããäºç¡ããå¿çãå¾ ã¤äºãã§ããã°ããã®å ã®å¦çã¯é常éãã
- ææ ¢ã§ããã«åæããã°ãããã§ããã¾ãã
milter-greylist 㧠Tarpitting ãè¡ãæã«ããããã£ãæåããããã«ã¯ãgreylist.conf ã«æ¬¡ã®ããã«æ¸ãã¾ãã
racl whitelist tarpit 90s
ä¸è¨ã®ä¾ã§ã¯ã90 ç§å¾ã«å¿çãè¿ãããã«ãã¦ãããã«èããããã whitelistãã¤ã¾ããåä¿¡ã»ä¸ç¶ã許å¯ãããã¨ãããã¨ã«ãªãã¾ãã
ããã¾ã§ã¯æ®éã® Tarpitting ãªã®ã§ãããåé¡ã¯éä¸ã§åæããæã§ãã
Greylisting ã®ãã㪠Tarpitting
éä¸ã§åæããå度ãåãç¸æããåãå®å
ã¸ã®ã¡ã¼ã«ããã£ãã¨ãã¾ãããã®å ´åãtarpit ãæå®ãã ACL ã®è¡ããããããåå¨ãã¦ããªãã£ããããªæåã«ãªãã¾ãããã®äºã¯ãé è¤ãããããããéã£ãæã®ã¡ã¼ã«ã«ã説æããã¦ãã¾ãã
[PATCH] tarpit support
This ACL means that clients that can wait a response in
65s are whitelisted. If the clients access again, they are
acceptted without lazy response because they are in
auto-whitelist.If clients that couldn't wait a lazy response access again,
the ACL doesn't match.
ããã® ACL ã¯ã65 ç§*3éãå¿çãå¾
ã¤äºãã§ããã¯ã©ã¤ã¢ã³ãã¯ããã¯ã¤ããªã¹ãæ±ãã¨ãªãäºãæå³ãã¾ãããã®ã¯ã©ã¤ã¢ã³ããå度ã¢ã¯ã»ã¹ãã¦ããå ´åãèªåãã¯ã¤ããªã¹ãã«å
¥ã£ã¦ããã®ã§ãå¾
ãããããã¨ãªãåçããã¾ãã
ãããå¾
ã¡ãããªãã£ãã¯ã©ã¤ã¢ã³ããå度ã¢ã¯ã»ã¹ãã¦ããå ´åããã® ACL ã«ããããã¾ãããã
ã¤ã¾ãããã¡ãã¨å¾ ã¦ãã¯ã©ã¤ã¢ã³ãã¯ãã¯ã¤ããªã¹ãæ±ãã§ããã¤ãèªåãã¯ã¤ããªã¹ãã«å ¥ã£ã¦ã以å¾ãå¾ ããããã«åçããã¾ãããå¾ ã¦ãã«åã£ã¦ãå度æ¥ç¶ãã¦ããå ´åãtarpit ãæ¸ãã ACL ã®è¡ã¯ãæ¡ä»¶ã¨ãã¦å¼ã£ããããããã® ACL ããå¾ã«è¨è¿°ãããå 容ã«ãå¤æããã ããããäºã«ãªãã¾ãã
ä¸æãã㨠spammer ã®æ¹ãæå©
ãã®æåãèããã¨ããtarpitãã® ACL ã¯æ³¨æãå¿ è¦ã§ãããracl whitelist tarpit 90sãã¨æ¸ãã¨ãè¾æ±å¼·ãå¾ ã£ã¦ããç¸æãæããã¦ãéä¸ã§åã£ã¦ãã¾ããã£ãã¡ãªç¸æã¯æå¦ãããããã«æãã¾ãããããã
racl whitelist tarpit 90s racl whitelist default
ã¨æ¸ããã¦ããããæ°ç§ã§åå¿ãç¡ãã¨å¤æãã¦ã³ãã¯ã·ã§ã³ãåæããåæ¥ç¶ããæ¹ããè¾æ±å¼·ã 90 ç§éå¾ ã£ã¦ãããããå°ãªãããã«ãã£ã§é éããããã¨ã«ãªãã¾ããæ®éã« Greylisting ãã¦ãã¦ããã²ãããåéä¿¡ãç¹°ãè¿ãã¦ãèªåãã¯ã¤ããªã¹ãå ¥ãããç¸æããã¾ãã®ã§ãããã§ã¯ä¸æããã¨ãspammer ã®æ¹ãæå©ã«ãªã£ã¦ãã¾ãã¾ãã
tarpit ã®å¾ãã¯å¤§ããªããã«ãã£
tarpit ã®ç´å¾ã® ACL ã¯ãTarpitting ã«èããããªãç¸æã«å¯¾ããã«ã¼ã«ãè¨è¿°ããã®ãåºæ¬ã«ãªãã¾ãããããTarpitting ã«èããããã®ã§ããã°ãtarpit ãè¨è¿°ããè¡ã§é éãããäºã«ãªãã¾ããä¸çªãåç´ãªè¨è¿°ã ã¨ãä¸è¨ã®ããã«ãªãã¾ãã
racl whitelist tarpit 90s racl blacklist default
ããã ã¨ãå ¨ã¦ã®ã¡ã¼ã«ã«å¯¾ã㦠90 ç§éã® Tarpitting ãè¡ããèããããç©ã¯é éããèããããªãã£ããã®ã¯æå¦ãããã¨ããåãã«ãªãã¾ãã
ç¡æ¡ä»¶ã« Tarpitting ããå ´åã¯ãä¸è¨ã®ãããªè¨è¿°ã«ãªãã¨æãã¾ãããS25R ã DNSBL ã使ã£ããæ¡ä»¶ä»ã Tarpittingããããå ´åã«ã¯ãããã«ãã£ã課ã ACL ã§ãåãæ¡ä»¶ãä¸ããªãã¨ãTarpitting ã¨ã¯ç¡é¢ä¿ã«ããã® ACL ãè©ä¾¡ããã¾ãã
racl whitelist domain example.com tarpit 90s racl blacklist default
ä¸è¨ã®å ´åãç¸æ MTA ã example.com ã ã£ãå ´åã« Tarpitting ããã¦ãèããããªãã£ããæå¦ãã¨ããæåã«ãªãã¾ããããããããç¸æã MTA ã example.com ã§ã¯ç¡ãã£ãå ´åã«ã¯ãï¼è¡ç®ã«ã¯å¼ã£ããããã«ï¼è¡ç®ã§å¼ã£ãããäºã«ãªãã®ã§ããç¸æã® MTA ã example.com 以å¤ã¯å¿ ãæå¦ãã¨ããäºã«ãªãã¾ãããã®å ´åã§ããã°ã
racl whitelist domain example.com tarpit 90s racl blacklist domain example.com
ã¨ãã¹ãã§ãããã
tarpitting + greylisting
ããã¾ã§ã¯ãtarpit ãæå®ããè¡ããwhitelistãã¨ãã¦ãã¾ãããããã®ä»£ããã«ãgreylistãã¨è¨è¿°ãããã¨ãåºæ¥ã¾ãã
racl greylist tarpit 90s racl blacklist default
greylist ãæå®ããã¨ããTarpitting ã«èããã greylistingãã¨ããæåã«ãªãã¾ããã¤ã¾ãã仮㫠Tarpitting ã«èããã¨ãã¦ããä¸åº¦ç®ã¯ä¸ç¶ã許å¯ããããåéãããã¨è¨±å¯ããããã¨ããæåã«ãªãã¾ãã
ãã ãã¡ãã£ã¨æåãå¾®å¦ã§ãã
ä¸è¦ãæåã« Tarpitting ã«èãããã¨ã« Greylist å ¥ããã¦ãï¼åº¦ç®ã«è¨±å¯ããããã«æãã¾ãããå®éã«è©¦ãã¨ã許å¯ãããã®ã¯ï¼åº¦ç®ã§ããã
- Tarpitting ãåããæå¥ã«ãä¸æã¨ã©ã¼ã
- Tarpitting ã¯ç¡ããã©ãä¸æã¨ã©ã¼ã
- æ®éã«è¨±å¯
ã¨ããäºã«ãªãã®ã§ãgreylist ã§æå®ããã Tarpitting ã®å ´åãç¸æ MTA ã®åéééã®ï¼åã®é ããçºçãããã¨ã«ãªãã¾ãã
使ãã©ãã
Tarpitting ã¯ãããããããã使ã£ã spam éä¿¡ã®ããã«ããé常ã®ã¡ã¼ã«ãµã¼ãã§ããã°ããã®æ§ãªæåã«ãªããªããã¨ããäºãåºæºã«ãã¦ããç¹ã¯ Greylisting ã¨åãã§ãããã ãmilter-greylist ã® Greylisting ã§ã¯ãããã¤ããåéãã¦ãããã¿ã¤ãã¯è¨±å¯ãã¦ãã¾ãã®ã«å¯¾ãããã® Tarpitting ã¯ãtarpit ãæ¸ãã ACL ã®æ¬¡ã®è¡ã¨ã®çµã¿åããã§ãããå¼·åãªããã«ãã£ãç§ãããããã¨ããã®ããã¤ã³ãã§ããDNSBL ãªã©ã§æªããç©ãæ½åºã㦠Tarpitting ãã¦ããã¨ããã£ãã¡ãªç¸æã確å®ã«ãããã¯ããäºãã§ããã¨æãã¾ãã
ãã ãè¿é ã®ãç¹ã«æ¥æ¬èªã® spam ã®å ´åãæ®éã«å½å ã®åºå® IP ããã£ã¦ãæ®éã« MTA ã®ãµã¼ããç«ã¦ã¦ããã£ãã SPF ãè¨å®ãã¦éã£ã¦ããäºãå¤ããªã£ã¦ãã¦ããå°è±¡ãããã¾ããspam éä¿¡ã«ãããããããåããã®ã¨ãAmazon ECS ãåããã®ã¨ã§éé¡ãéããªãããªãã¦è©±ãããã®ã§ãåãã㯠Greylisting ã®å¹æã¯å°ãããªã£ã¦ããããããã¾ããã
ã«ãã¦ãããããªã«å²ããã®ããªããspam ã®éä¿¡ã£ã¦ã
*1:ãã®å¾ã10/19 ã« Ver. 4.4.1 ããªãªã¼ã¹
*2:milter-greylist 4.3.4 is available
*3:ã¡ã¼ã«ã®ä¸ã«æ¸ããã¦ããä¾ã§ã¯ããtarpit 65sãã¨ããè¨è¿°ã