{"id":222,"date":"2021-05-30T17:07:13","date_gmt":"2021-05-30T17:07:13","guid":{"rendered":"https:\/\/www.zebadger.com\/wp\/?p=222"},"modified":"2023-05-25T11:56:17","modified_gmt":"2023-05-25T11:56:17","slug":"fail2ban-not-picking-up-sshd-attacks","status":"publish","type":"post","link":"https:\/\/www.zebadger.com\/wp\/?p=222","title":{"rendered":"Fail2ban not picking up sshd attacks"},"content":{"rendered":"<p>It wasn&#8217;t working for me, no matter what I tried.<br \/>\nThe command<br \/>\n<code>fail2ban-regex \/var\/log\/auth.log \/etc\/fail2ban\/filter.d\/sshd.conf<\/code><br \/>\nwas showing matches successfully.  <\/p>\n<p>In the end I ran these commands&#8230; I&#8217;m fairly sure it was just the RepeatedMsgReduction setting to off that fixed it though<\/p>\n<p><code>dpkg-reconfigure tzdata<br \/>\nln -s \/usr\/share\/zoneinfo\/Europe\/London \/etc\/localtime<\/code><\/p>\n<p>vim \/etc\/rsyslog.conf<br \/>\n<code>#Change this line of \"off\" so we can see all messages<br \/>\n$RepeatedMsgReduction off<\/code><\/p>\n<p>Then<br \/>\n<code>service rsyslog restart<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It wasn&#8217;t working for me, no matter what I tried. The command fail2ban-regex \/var\/log\/auth.log \/etc\/fail2ban\/filter.d\/sshd.conf was showing matches successfully. In the end I ran these commands&#8230; I&#8217;m fairly sure it was just the RepeatedMsgReduction setting to off that fixed it though dpkg-reconfigure tzdata ln -s \/usr\/share\/zoneinfo\/Europe\/London \/etc\/localtime vim \/etc\/rsyslog.conf #Change this line of &#8220;off&#8221; so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[23,12],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-linux","category-security"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":3,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions\/225"}],"wp:attachment":[{"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}