{"id":954,"date":"2021-04-20T11:41:03","date_gmt":"2021-04-20T02:41:03","guid":{"rendered":"https:\/\/sirius10.net\/blog\/wordpress\/?p=954"},"modified":"2021-07-06T09:05:24","modified_gmt":"2021-07-06T00:05:24","slug":"sasl-login-authentication-failed-fail2ban","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/04\/20\/954\/","title":{"rendered":"SASL LOGIN authentication failed (fail2ban)"},"content":{"rendered":"\n<p>\u3000\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3088\u3046\u3068\u3059\u308b\u99ac\u9e7f\u8005\u304c\u3044\u307e\u3059\u3002mail.log \u306b\u983b\u7e41\u306b\u3001<\/p>\n\n\n\n<p class=\"file\">SASL LOGIN authentication failed: UGFzc3dvcmQ6<\/p>\n\n\n\n<p>\u304c\u51fa\u307e\u3059\u3002\u307e\u3042\u3001failed \u3057\u3066\u3044\u308b\u306e\u3067\u307e\u3060\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u3067\u3082\u5bfe\u7b56\u306f\u3057\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u5b89\u5168\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3000fail2ban \u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u306e\u3067\u3001\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p class=\"console\">$sudo apt-get install -y fail2ban<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8a2d\u5b9a<\/h2>\n\n\n\n<p class=\"console\">$ cd \/etc\/faul2ban\/jail.d<br>$ sudo vi postfix-sasl.conf<\/p>\n\n\n\n<p class=\"file\">[postfix-sasl]<br>enabled = true<br>logpath = %(postfix_log)s<br>maxretry = 5<br>findtime = 86400<br>bantime = 86400<br>backend = %(postfix_backend)s<\/p>\n\n\n\n<p>\u4e00\u65e5\u306e\u9593\u306b 5 \u56de\u5931\u6557\u3057\u305f\u3089\u3001\u4e00\u65e5\u9593 ban \u3059\u308b\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u78ba\u8a8d<\/h2>\n\n\n\n<p>\u3000\u3061\u3083\u3093\u3068\u76e3\u8996\u3067\u304d\u3066\u3044\u308b\u306e\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo fail2ban-client status<br>Status<br>|- Number of jail: 2<br>`- Jail list: postfix-sasl, sshd<\/p>\n\n\n\n<p>\u3000postfix-sasl \u3068 sshd \u3092\u76e3\u8996\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u6570\u65e5\u7f6e\u3044\u3066ban\u6570\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo fail2ban-client status postfix-sasl<br>Status for the jail: postfix-sasl\n|- Filter<br>|  |- Currently failed:\t0<br>|  |- Total failed:\t103<br>|  `- File list:\t\/var\/log\/mail.log<br>`- Actions<br>   |- Currently banned:\t1<br>   |- Total banned:\t13<br>   `- Banned IP list:\t103.15.xxx.yyy<\/p>\n\n\n\n<p>\u3000\u305d\u308c\u307b\u3069\u591a\u304f\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u3002fail2ban \u3060\u3051\u3067\u3044\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>2012.07.05 \u8ffd\u8a18<br>\u3000fail2ban \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d6\u30ed\u30c3\u30af\u306f REJECT \u3067\u3059\u3002\u76f8\u624b\u306b\u901a\u77e5\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u3093\u306a\u76f8\u624b\u306b\u306f\u624b\u9593\u3092\u66f8\u3051\u308b\u5fc5\u8981\u306f\u306a\u3044\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067 DROP \u306b\u8a2d\u5b9a\u3092\u5909\u3048\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-sirius-\u306e\u30d6\u30ed\u30b0 wp-block-embed-sirius-\u306e\u30d6\u30ed\u30b0\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"yus84J8RHd\"><a href=\"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/07\/06\/1607\/\">\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u3092\u30ea\u30ec\u30fc\u3057\u3088\u3046\u3068\u63a5\u7d9a\u3059\u308b\u30db\u30b9\u30c8\u306e\u5bfe\u7b56(fail2ban)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u3092\u30ea\u30ec\u30fc\u3057\u3088\u3046\u3068\u63a5\u7d9a\u3059\u308b\u30db\u30b9\u30c8\u306e\u5bfe\u7b56(fail2ban)&#8221; &#8212; Sirius \u306e\u30d6\u30ed\u30b0\" src=\"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/07\/06\/1607\/embed\/#?secret=3obrhTMjEK#?secret=yus84J8RHd\" data-secret=\"yus84J8RHd\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3088\u3046\u3068\u3059\u308b\u99ac\u9e7f\u8005\u304c\u3044\u307e\u3059\u3002mail.log \u306b\u983b\u7e41\u306b\u3001 SASL LOGIN authentication failed: UGFzc3dvcmQ6 \u304c\u51fa\u307e\u3059\u3002\u307e\u3042\u3001failed \u3057\u3066\u3044\u308b\u306e\u3067\u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-954","post","type-post","status-publish","format-standard","hentry","category-server-config"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=954"}],"version-history":[{"count":11,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/954\/revisions"}],"predecessor-version":[{"id":1645,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/954\/revisions\/1645"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}