{"id":15,"date":"2013-02-17T21:39:00","date_gmt":"2013-02-17T20:39:00","guid":{"rendered":"http:\/\/www.ncodenicer.com\/?p=15"},"modified":"2026-05-10T19:27:49","modified_gmt":"2026-05-10T17:27:49","slug":"how-to-prevent-annoying-crackers-from-brute-force-login-attacks","status":"publish","type":"post","link":"https:\/\/www.codenicer.com\/?p=15","title":{"rendered":"How to prevent annoying crackers from brute force login attacks"},"content":{"rendered":"\n<p>Add following to your \/etc\/pf.conf<br><code><br># if re0 is your card<br>$ext_if=\"re0\"<br># this goes in the top<br>table &lt;bad_guys&gt; persist<br>...<br>block in quick on $ext_if from &lt;bad_guys&gt; to any<br><\/code><\/p>\n\n\n\n<p>Add following to your \/etc\/syslog.conf<br><code><br>auth.info;authpriv.info |\/root\/auth_checker.pl<br><\/code><br>(assuming that auth_checker.pl is in \/root directory)<\/p>\n\n\n\n<p>If you want to remove ip from table bad_guys (in case you somehow lock yourself), add this to \/etc\/crontab<br><code><br>* * * * * root \/sbin\/pfctl -t bad_guys -Te 1000 &gt;&gt; \/dev\/null 2&gt;&amp;1<br><\/code><\/p>\n\n\n\n<p>auth_checker.pl script is attached<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-14af32a8-6ccd-414c-bff3-592230931004\" href=\"http:\/\/www.ncodenicer.com\/wp-content\/uploads\/2013\/02\/auth_checker.pl_.txt\">auth_checker.pl<\/a><a href=\"http:\/\/www.ncodenicer.com\/wp-content\/uploads\/2013\/02\/auth_checker.pl_.txt\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-14af32a8-6ccd-414c-bff3-592230931004\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Add following to your \/etc\/pf.conf# if re0 is your card$ext_if=&#8221;re0&#8243;# this goes in the toptable &lt;bad_guys&gt; persist&#8230;block in quick on $ext_if from &lt;bad_guys&gt; to any Add following to your \/etc\/syslog.confauth.info;authpriv.info |\/root\/auth_checker.pl(assuming that auth_checker.pl is in \/root directory) If you want to remove ip from table bad_guys (in case you somehow lock yourself), add this to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,6,9],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cracker","tag-freebsd","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":3,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/19"}],"wp:attachment":[{"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codenicer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}