{"id":2353,"date":"2025-04-24T20:35:03","date_gmt":"2025-04-24T20:35:03","guid":{"rendered":"https:\/\/wiki.xontel.com\/?post_type=manual_documentation&#038;p=2353"},"modified":"2025-10-03T18:08:40","modified_gmt":"2025-10-03T18:08:40","slug":"fail2ban","status":"publish","type":"manual_documentation","link":"https:\/\/wiki.xontel.com\/ar\/documentation\/pbx\/pbx-v-1-x-x\/system\/security\/fail2ban\/","title":{"rendered":"Fail2ban"},"content":{"rendered":"<p><strong>Fail2ban<\/strong> is a powerful security tool that helps protect your server from unauthorized access and brute-force attacks by monitoring log files and banning IPs that show malicious signs.<\/p>\n\n\n\n<p style=\"font-size:23px\">\u2705 <strong>Status Controls<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Start<\/strong>: Activates Fail2ban monitoring(activated by default).<\/li>\n\n\n\n<li><strong>Stop<\/strong>: Deactivates Fail2ban protection.<\/li>\n\n\n\n<li><strong>Status<\/strong>: Displays whether Fail2ban is currently running.<\/li>\n<\/ul>\n\n\n\n<p style=\"font-size:23px\"><strong>Whitelist<\/strong><\/p>\n\n\n\n<p>IP addresses in the Whitelist are always allowed access and will never be banned by Fail2ban.<\/p>\n\n\n\n<p>Use this section to ensure your trusted IPs (e.g., internal admin users) are never mistakenly blocked.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"421\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-99-1024x421.png\" alt=\"\" class=\"wp-image-7999\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-99-1024x421.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-99-300x123.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-99-768x316.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-99-18x7.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-99.png 1493w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p style=\"font-size:23px\"><strong>Settings<\/strong><\/p>\n\n\n\n<p>These settings control how Fail2ban detects and handles suspicious behavior:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ban Time<\/strong>: The duration (in seconds) that an IP address remains banned.<\/li>\n\n\n\n<li><strong>Find Time<\/strong>: The time window (in seconds) in which failures are counted.<\/li>\n\n\n\n<li><strong>Max Retries<\/strong>: The maximum number of failed login attempts allowed before banning an IP.<br><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img decoding=\"async\" width=\"1024\" height=\"273\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-100-1024x273.png\" alt=\"\" class=\"wp-image-8000\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-100-1024x273.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-100-300x80.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-100-768x205.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-100-18x5.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-100.png 1495w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can adjust these settings by clicking the pencil icon under the <strong>Edit<\/strong> column.<\/p>\n\n\n\n<p>The <strong>Reset<\/strong> button is used to <strong>revert changes<\/strong> made<\/p>\n\n\n\n<p style=\"font-size:23px\"><strong>Blacklist<\/strong><\/p>\n\n\n\n<p>The <strong>Blacklist<\/strong> in Fail2ban shows the <strong>IP addresses that have been automatically banned<\/strong> based on the active monitoring rules and security settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large image-border\"><img decoding=\"async\" width=\"1024\" height=\"295\" src=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-101-1024x295.png\" alt=\"\" class=\"wp-image-8001\" srcset=\"https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-101-1024x295.png 1024w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-101-300x86.png 300w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-101-768x221.png 768w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-101-18x5.png 18w, https:\/\/wiki.xontel.com\/wp-content\/uploads\/2025\/04\/image-101.png 1486w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once the <strong>ban time expires<\/strong>, the IP is automatically removed unless it&#8217;s caught again.<\/p>\n\n\n\n<p>In the Action column, clicking it will manually remove (unban) the IP from the blacklist before the ban time expires.<\/p>","protected":false},"author":1,"featured_media":0,"parent":2345,"menu_order":0,"template":"","manualdocumentationcategory":[16],"manual_doc_tag":[],"class_list":["post-2353","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-doc-demo-articles"],"_links":{"self":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":7,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2353\/revisions"}],"predecessor-version":[{"id":8008,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2353\/revisions\/8008"}],"up":[{"embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_documentation\/2345"}],"wp:attachment":[{"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/media?parent=2353"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manualdocumentationcategory?post=2353"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/wiki.xontel.com\/ar\/wp-json\/wp\/v2\/manual_doc_tag?post=2353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}