{"id":246,"date":"2022-02-10T08:48:38","date_gmt":"2022-02-10T08:48:38","guid":{"rendered":"https:\/\/www.simplyhosting.com\/support\/?post_type=ht_kb&#038;p=246"},"modified":"2022-02-11T16:49:48","modified_gmt":"2022-02-11T16:49:48","slug":"enabling-fail2ban","status":"publish","type":"ht_kb","link":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/","title":{"rendered":"Enabling Fail2Ban"},"content":{"rendered":"\n<p>Once you have installed Fail2Ban, it needs to be enabled to start protecting specific services (daemons) of your server, so please follow these steps to enable it.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Log into Plesk via <a href=\"https:\/\/XXX.XXX.XXX.XXX:8443\">https:\/\/XXX.XXX.XXX.XXX:8443<\/a> (the X\u2019s represent the IP address of your server).<\/li><li>Click on <strong>&#8220;Tools &amp; Settings<\/strong>&#8221; on menu on the left-hand side.<\/li><li>On the Security section, click on <em>IP Address Banning (Fail2Ban) <\/em>as shown in the pictures below;<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"705\" src=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-1024x705.jpg\" alt=\"\" class=\"wp-image-247\" srcset=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-1024x705.jpg 1024w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-300x206.jpg 300w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-768x529.jpg 768w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-50x34.jpg 50w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk.jpg 1216w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>To enable Fail2Ban you just need to click on &#8220;<em><strong>Settings<\/strong><\/em>&#8220;, select <strong>&#8220;Enable intrusion detection<\/strong>&#8220;, and click on &#8220;<strong>OK&#8221;<\/strong>.<\/p>\n\n\n\n<p>On the same page, it is also possible to customise some settings, such as ban period and the number of failures before the IP address is banned, as you can see on the following screenshot;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"656\" src=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-settings-plesk-1024x656.jpg\" alt=\"\" class=\"wp-image-250\" srcset=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-settings-plesk-1024x656.jpg 1024w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-settings-plesk-300x192.jpg 300w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-settings-plesk-768x492.jpg 768w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-settings-plesk-50x32.jpg 50w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-settings-plesk.jpg 1216w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To check on Fail2Ban activity, you may need to analyse its log file from time to time, which you can reach and download via the Plesk GUI, as you can see below;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-logs-plesk-1024x259.jpg\" alt=\"\" class=\"wp-image-251\" width=\"840\" height=\"212\" srcset=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-logs-plesk-1024x259.jpg 1024w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-logs-plesk-300x76.jpg 300w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-logs-plesk-768x195.jpg 768w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-logs-plesk-50x13.jpg 50w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-logs-plesk.jpg 1216w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-nco-advice-block\"><p class=\"nco-advice-block-content\"><strong>Tip:<\/strong> You may want to take a look at the <strong>Jails menu<\/strong> before enabling Fail2Ban. Through Fail2Ban Jails menu, you can configure Fail2Ban whether to monitor a specific service or not, so you could disable one or more of them for instance<\/p><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"637\" src=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-jail-plesk-1024x637.jpg\" alt=\"\" class=\"wp-image-248\" srcset=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-jail-plesk-1024x637.jpg 1024w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-jail-plesk-300x187.jpg 300w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-jail-plesk-768x478.jpg 768w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-jail-plesk-50x31.jpg 50w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-jail-plesk.jpg 1216w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-nco-advice-block\"><p class=\"nco-advice-block-content\"><strong>Tip:<\/strong> You may also want to add some IP addresses to the Trusted IP addresses list, so they will not be banned by Fail2Ban. This may be useful if some users of your network have a wrong credential set on their email client for example, so their IP address is likely to be block after a certain number of failed attempts to login.<\/p><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"455\" src=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-trusted-plesk-1024x455.jpg\" alt=\"\" class=\"wp-image-249\" srcset=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-trusted-plesk-1024x455.jpg 1024w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-trusted-plesk-300x133.jpg 300w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-trusted-plesk-768x341.jpg 768w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-trusted-plesk-50x22.jpg 50w, https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-trusted-plesk.jpg 1216w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"get-in-touch\"><strong>Get in touch<\/strong><\/h2>\n\n\n\n<p>If you need advice on Fail2Ban, we\u2019re here to help.<\/p>\n\n\n\n<p><strong>Call us on 0333 247 0222: <\/strong>Monday &#8211; Friday, 9am \u2013 5.30pm.<\/p>\n\n\n\n<p id=\"chat-to-us-on-livechat-monday-friday-9am-5-30pm\"><strong>Chat with us on LiveChat:<\/strong> Monday &#8211; Friday, 9am &#8211; 5.30pm.<\/p>\n\n\n\n<p id=\"write-to-us-send-us-a-support-ticket-from-your-simply-portal-and-we-ll-get-back-to-you-as-soon-as-we-can-https-portal-simplyhosting-com-site-login\"><strong>Write to us:<\/strong> Send us a support ticket from your <a href=\"https:\/\/portal.simplyhosting.com\/site\/login\/\">Simply portal<\/a> and we\u2019ll get back to you as soon as we can. <\/p>\n\n\n\n<p>If you don\u2019t have an account with Simply Hosting yet, you can also send our <a href=\"https:\/\/www.simplyhosting.com\/info\/contact-us\">Sales team<\/a> an enquiry and we&#8217;ll get back to you between <strong>9am<\/strong> and <strong>5.30pm<\/strong>, <strong>Monday<\/strong> to <strong>Friday<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once you have installed Fail2Ban, it needs to be enabled to start protecting specific services (daemons) of your server, so please follow these steps to enable it. Log into Plesk via https:\/\/XXX.XXX.XXX.XXX:8443 (the X\u2019s represent the IP address of your server). Click on &#8220;Tools &amp; Settings&#8221; on menu on the left-hand side. On the Security [&hellip;]<\/p>\n","protected":false},"author":10,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[20],"ht-kb-tag":[53,46,54],"class_list":["post-246","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-ssl-security","ht_kb_tag-fail2ban","ht_kb_tag-linux","ht_kb_tag-plesk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Enabling Fail2Ban - Support Centre - Simply Hosting &amp; Servers<\/title>\n<meta name=\"description\" content=\"How to enable Fail2Ban on a Plesk Server - Simplyhosting.com\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enabling Fail2Ban - Support Centre - Simply Hosting &amp; Servers\" \/>\n<meta property=\"og:description\" content=\"How to enable Fail2Ban on a Plesk Server - Simplyhosting.com\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/\" \/>\n<meta property=\"og:site_name\" content=\"Support Centre - Simply Hosting &amp; Servers\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-11T16:49:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-1024x705.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/\",\"url\":\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/\",\"name\":\"Enabling Fail2Ban - Support Centre - Simply Hosting &amp; Servers\",\"isPartOf\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-1024x705.jpg\",\"datePublished\":\"2022-02-10T08:48:38+00:00\",\"dateModified\":\"2022-02-11T16:49:48+00:00\",\"description\":\"How to enable Fail2Ban on a Plesk Server - Simplyhosting.com\",\"breadcrumb\":{\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#primaryimage\",\"url\":\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk.jpg\",\"contentUrl\":\"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk.jpg\",\"width\":1216,\"height\":837},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.simplyhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enabling Fail2Ban\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.simplyhosting.com\/support\/#website\",\"url\":\"https:\/\/www.simplyhosting.com\/support\/\",\"name\":\"Support Centre - Simply Hosting &amp; Servers\",\"description\":\"Simply Hosting &amp; Servers Support Centre\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.simplyhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Enabling Fail2Ban - Support Centre - Simply Hosting &amp; Servers","description":"How to enable Fail2Ban on a Plesk Server - Simplyhosting.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/","og_locale":"en_GB","og_type":"article","og_title":"Enabling Fail2Ban - Support Centre - Simply Hosting &amp; Servers","og_description":"How to enable Fail2Ban on a Plesk Server - Simplyhosting.com","og_url":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/","og_site_name":"Support Centre - Simply Hosting &amp; Servers","article_modified_time":"2022-02-11T16:49:48+00:00","og_image":[{"url":"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-1024x705.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/","url":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/","name":"Enabling Fail2Ban - Support Centre - Simply Hosting &amp; Servers","isPartOf":{"@id":"https:\/\/www.simplyhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#primaryimage"},"image":{"@id":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#primaryimage"},"thumbnailUrl":"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk-1024x705.jpg","datePublished":"2022-02-10T08:48:38+00:00","dateModified":"2022-02-11T16:49:48+00:00","description":"How to enable Fail2Ban on a Plesk Server - Simplyhosting.com","breadcrumb":{"@id":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#primaryimage","url":"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk.jpg","contentUrl":"https:\/\/www.simplyhosting.com\/support\/wp-content\/uploads\/2022\/02\/plesk-fail2ban-enable-plesk.jpg","width":1216,"height":837},{"@type":"BreadcrumbList","@id":"https:\/\/www.simplyhosting.com\/support\/articles\/enabling-fail2ban\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.simplyhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Enabling Fail2Ban"}]},{"@type":"WebSite","@id":"https:\/\/www.simplyhosting.com\/support\/#website","url":"https:\/\/www.simplyhosting.com\/support\/","name":"Support Centre - Simply Hosting &amp; Servers","description":"Simply Hosting &amp; Servers Support Centre","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.simplyhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":3,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/246\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb\/246\/revisions\/340"}],"wp:attachment":[{"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb-category?post=246"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.simplyhosting.com\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}