{"id":828,"date":"2021-01-14T02:03:55","date_gmt":"2021-01-14T02:03:55","guid":{"rendered":"http:\/\/www.ishygddt.xyz\/~blog\/?p=828"},"modified":"2022-06-03T16:29:10","modified_gmt":"2022-06-03T21:29:10","slug":"quick-setup-fail2ban-on-centos-8","status":"publish","type":"post","link":"http:\/\/www.ishygddt.xyz\/~blog\/2021\/01\/quick-setup-fail2ban-on-centos-8","title":{"rendered":"Quick setup: Fail2ban on CentOS 8"},"content":{"rendered":"<p>Instant, easy setup. Just 4 commands, and your server will be protected:<\/p>\n<ol>\n<li><code class=\"language-shell\" data-line=\"\">dnf install epel-release<\/code><\/li>\n<li><code class=\"language-shell\" data-line=\"\">dnf install fail2ban<\/code><\/li>\n<li><code class=\"language-shell\" data-line=\"\">nano \/etc\/fail2ban\/jail.local<\/code>\n<ul>\n<li>Paste this:\n<pre><code class=\"language-ini\" data-line=\"\">[sshd]\nenabled = true<\/code><\/pre>\n<\/li>\n<li>Save and quit<\/li>\n<\/ul>\n<\/li>\n<li><code class=\"language-shell\" data-line=\"\">systemctl enable --now fail2ban<\/code><\/li>\n<\/ol>\n<hr \/>\n<p>To check if it's working:<\/p>\n<pre><code class=\"language-shell\" data-line=\"\">fail2ban-client status sshd<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Instant, easy setup. Just 4 commands, and your server will be protected: dnf install epel-release dnf install fail2ban nano \/etc\/fail2ban\/jail.local Paste this: [sshd] enabled = true Save and quit systemctl enable &#8211;now fail2ban To check if it's working: fail2ban-client status sshd<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[136,51,137],"class_list":["post-828","post","type-post","status-publish","format-standard","hentry","category-howto","tag-fail2ban","tag-linux","tag-rhel"],"_links":{"self":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/comments?post=828"}],"version-history":[{"count":8,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/828\/revisions"}],"predecessor-version":[{"id":2254,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/828\/revisions\/2254"}],"wp:attachment":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/media?parent=828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/categories?post=828"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/tags?post=828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}