{"id":9871,"date":"2024-03-31T04:23:20","date_gmt":"2024-03-31T01:23:20","guid":{"rendered":"https:\/\/sunucun.com.tr\/bilgi\/?post_type=dt_articles&#038;p=9871"},"modified":"2026-02-06T20:33:16","modified_gmt":"2026-02-06T17:33:16","slug":"how-to-create-whitelist-and-blacklist-with-fail2ban","status":"publish","type":"post","link":"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/","title":{"rendered":"Fail2Ban How to create whitelist and blacklist with"},"content":{"rendered":"\r\n<div class=\"wp-block-column\">\r\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\r\n\r\n\r\n\r\n<p>Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for a more tailored and effective server security strategy.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Why Whitelist and Blacklist?<\/h3>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Whitelist:<\/strong> Reduces the risk of accidentally blocking traffic from trusted sources, A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. such as business partners, customers, or internal networks. This ensures uninterrupted service for essential connections while maintaining high security standards.<\/li>\r\n\r\n\r\n\r\n<li><strong>Blacklist:<\/strong> Permanently blocks IP addresses A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. that persistently engage in malicious activities or are identified as a specific threat. This proactive measure enhances security by preventing repeated attacks from known bad actors.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">How to Use It?<\/h3>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Creating a Whitelist<\/h4>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><strong>Edit Fail2Ban Configuration File:<\/strong> In Fail2Ban&#8217;s configuration file (<code>jail.local<\/code> or <code>jail.conf<\/code>), add the IP addresses you wish to whitelist under the <code>ignoreip<\/code> setting. This ensures these IP addresses are always allowed to access your server without restriction.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>[DEFAULT]\r\nignoreip = 127.0.0.1\/8 ::1 IP_ADDRESS_1 IP_ADDRESS_2\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>Here, <code>IP_ADDRESS_1<\/code>, <code>IP_ADDRESS_2<\/code>, etc., are the IP addresses you want to whitelist. These addresses will bypass Fail2Ban&#8217;s security checks, ensuring uninterrupted access to your server.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Creating a Blacklist<\/h4>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><strong>Create Your Own Blacklist Filter:<\/strong> In the <code>\/etc\/fail2ban\/filter.d<\/code> directory, create a custom blacklist filter. For example, create a file named <code>myblacklist.conf<\/code> and configure it as follows:<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>[Definition]\r\nfailregex = ^&lt;HOST&gt;$\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<p><strong>Configure a Blacklist Jail:<\/strong> In the <code>\/etc\/fail2ban\/jail.local<\/code> file, add a new jail configuration using this filter. For example:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>[myblacklist]\r\nenabled = true\r\nfilter = myblacklist\r\nlogpath = \/var\/log\/myblacklist.log\r\naction = iptables-allports[name=myblacklist]\r\n<\/code><\/pre>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>In this configuration, you&#8217;ll need to manually create the <code>myblacklist.log<\/code> file and add the malicious IP addresses you&#8217;ve identified to this file. This ensures that these threats are continuously blocked from accessing your server.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">What Are Its Components?<\/h3>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Whitelist:<\/strong> A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services.<\/li>\r\n\r\n\r\n\r\n<li><strong>Blacklist:<\/strong> A list of IP addresses that Fail2Ban will permanently block. This list is crucial for maintaining a secure environment by preventing access from known malicious sources.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Why Is It Important?<\/h3>\r\n\r\n\r\n\r\n<p>Creating a whitelist and blacklist with Fail2Ban provides the ability to administrators significant customize server security, reducing false positives and proactively blocking specific threats. These methods enhance the flexibility of Fail2Ban and the security of your server. Implementing these lists ensures that your server is protected from unauthorized access while allowing trusted users uninterrupted access.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\r\n\r\n\r\n\r\n<p>Whitelisting and blacklisting with Fail2Ban offer administrators significant flexibility in managing server security. They facilitate access from trusted sources while proactively blocking known threats, further strengthening your server&#8217;s security posture. For a more comprehensive guide, visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>. This step is crucial for enhancing the overall protection of your server.<\/p>\r\n<\/div>\r\n<\/div><!-- \/wp:post-content -->\r\n\r\n<!-- wp:columns {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<div class=\"wp-block-columns has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\"><!-- wp:column -->\r\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for a more tailored and effective server security strategy.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Whitelist and Blacklist?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> Reduces the risk of accidentally blocking traffic from trusted sources, A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. such as business partners, customers, or internal networks. This ensures uninterrupted service for essential connections while maintaining high security standards.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> Permanently blocks IP addresses A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. that persistently engage in malicious activities or are identified as a specific threat. This proactive measure enhances security by preventing repeated attacks from known bad actors.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">How to Use It?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Whitelist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Edit Fail2Ban Configuration File:<\/strong> In Fail2Ban&#8217;s configuration file (<code>jail.local<\/code> or <code>jail.conf<\/code>), add the IP addresses you wish to whitelist under the <code>ignoreip<\/code> setting. This ensures these IP addresses are always allowed to access your server without restriction.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[DEFAULT]\r\nignoreip = 127.0.0.1\/8 ::1 IP_ADDRESS_1 IP_ADDRESS_2\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>Here, <code>IP_ADDRESS_1<\/code>, <code>IP_ADDRESS_2<\/code>, etc., are the IP addresses you want to whitelist. These addresses will bypass Fail2Ban&#8217;s security checks, ensuring uninterrupted access to your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Blacklist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Create Your Own Blacklist Filter:<\/strong> In the <code>\/etc\/fail2ban\/filter.d<\/code> directory, create a custom blacklist filter. For example, create a file named <code>myblacklist.conf<\/code> and configure it as follows:<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[Definition]\r\nfailregex = ^&lt;HOST&gt;$\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:paragraph -->\r\n<p><strong>Configure a Blacklist Jail:<\/strong> In the <code>\/etc\/fail2ban\/jail.local<\/code> file, add a new jail configuration using this filter. For example:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[myblacklist]\r\nenabled = true\r\nfilter = myblacklist\r\nlogpath = \/var\/log\/myblacklist.log\r\naction = iptables-allports[name=myblacklist]\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>In this configuration, you&#8217;ll need to manually create the <code>myblacklist.log<\/code> file and add the malicious IP addresses you&#8217;ve identified to this file. This ensures that these threats are continuously blocked from accessing your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">What Are Its Components?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> A list of IP addresses that Fail2Ban will permanently block. This list is crucial for maintaining a secure environment by preventing access from known malicious sources.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Is It Important?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Creating a whitelist and blacklist with Fail2Ban provides the ability to administrators significant customize server security, reducing false positives and proactively blocking specific threats. These methods enhance the flexibility of Fail2Ban and the security of your server. Implementing these lists ensures that your server is protected from unauthorized access while allowing trusted users uninterrupted access.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Whitelisting and blacklisting with Fail2Ban offer administrators significant flexibility in managing server security. They facilitate access from trusted sources while proactively blocking known threats, further strengthening your server&#8217;s security posture. For a more comprehensive guide, visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>. This step is crucial for enhancing the overall protection of your server.<\/p>\r\n<\/div>\r\n<\/div><!-- \/wp:paragraph --><!-- \/wp:column --><!-- \/wp:columns --><!-- wp:post-content --><!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<p class=\"has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\">Fail2Ban is a tool that blocks malicious IP addresses to improve server security. However, in some cases, you may want to always consider certain IP addresses safe (whitelist) or block them outright (blacklist). Creating whitelists and blacklists with Fail2Ban is one way to meet these needs. For more detailed steps, you can visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":9847,\"width\":\"334px\",\"height\":\"auto\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"400\" height=\"243\" class=\"wp-image-9847\" style=\"width: 334px; height: auto;\" src=\"https:\/\/www.sunucun.com.tr\/blog\/\/wp-content\/uploads\/2024\/03\/fail2ban.webp\" alt=\"Fail2Ban whitelist and blacklist configuration\" srcset=\"https:\/\/sunucun.com.tr\/blog\/wp-content\/uploads\/2024\/03\/fail2ban.webp 400w, https:\/\/sunucun.com.tr\/blog\/wp-content\/uploads\/2024\/03\/fail2ban-300x182.webp 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/>\r\n<figcaption>Configuring whitelist and blacklist in Fail2Ban to enhance server security.<\/figcaption>\r\n<\/figure>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:columns {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<div class=\"wp-block-columns has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\"><!-- wp:column -->\r\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for a more tailored and effective server security strategy.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Whitelist and Blacklist?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> Reduces the risk of accidentally blocking traffic from trusted sources, A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. such as business partners, customers, or internal networks. This ensures uninterrupted service for essential connections while maintaining high security standards.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> Permanently blocks IP addresses A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. that persistently engage in malicious activities or are identified as a specific threat. This proactive measure enhances security by preventing repeated attacks from known bad actors.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">How to Use It?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Whitelist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Edit Fail2Ban Configuration File:<\/strong> In Fail2Ban&#8217;s configuration file (<code>jail.local<\/code> or <code>jail.conf<\/code>), add the IP addresses you wish to whitelist under the <code>ignoreip<\/code> setting. This ensures these IP addresses are always allowed to access your server without restriction.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[DEFAULT]\r\nignoreip = 127.0.0.1\/8 ::1 IP_ADDRESS_1 IP_ADDRESS_2\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>Here, <code>IP_ADDRESS_1<\/code>, <code>IP_ADDRESS_2<\/code>, etc., are the IP addresses you want to whitelist. These addresses will bypass Fail2Ban&#8217;s security checks, ensuring uninterrupted access to your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Blacklist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Create Your Own Blacklist Filter:<\/strong> In the <code>\/etc\/fail2ban\/filter.d<\/code> directory, create a custom blacklist filter. For example, create a file named <code>myblacklist.conf<\/code> and configure it as follows:<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[Definition]\r\nfailregex = ^&lt;HOST&gt;$\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:paragraph -->\r\n<p><strong>Configure a Blacklist Jail:<\/strong> In the <code>\/etc\/fail2ban\/jail.local<\/code> file, add a new jail configuration using this filter. For example:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[myblacklist]\r\nenabled = true\r\nfilter = myblacklist\r\nlogpath = \/var\/log\/myblacklist.log\r\naction = iptables-allports[name=myblacklist]\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>In this configuration, you&#8217;ll need to manually create the <code>myblacklist.log<\/code> file and add the malicious IP addresses you&#8217;ve identified to this file. This ensures that these threats are continuously blocked from accessing your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">What Are Its Components?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> A list of IP addresses that Fail2Ban will permanently block. This list is crucial for maintaining a secure environment by preventing access from known malicious sources.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Is It Important?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Creating a whitelist and blacklist with Fail2Ban provides the ability to administrators significant customize server security, reducing false positives and proactively blocking specific threats. These methods enhance the flexibility of Fail2Ban and the security of your server. Implementing these lists ensures that your server is protected from unauthorized access while allowing trusted users uninterrupted access.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Whitelisting and blacklisting with Fail2Ban offer administrators significant flexibility in managing server security. They facilitate access from trusted sources while proactively blocking known threats, further strengthening your server&#8217;s security posture. For a more comprehensive guide, visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>. This step is crucial for enhancing the overall protection of your server.<\/p>\r\n<\/div>\r\n<\/div><!-- \/wp:paragraph --><!-- \/wp:column --><!-- \/wp:columns --><!-- \/wp:post-content -->\r\n\r\n<!-- wp:columns {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<div class=\"wp-block-columns has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\"><!-- wp:column -->\r\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for a more tailored and effective server security strategy.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Whitelist and Blacklist?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> Reduces the risk of accidentally blocking traffic from trusted sources, A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. such as business partners, customers, or internal networks. This ensures uninterrupted service for essential connections while maintaining high security standards.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> Permanently blocks IP addresses A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. that persistently engage in malicious activities or are identified as a specific threat. This proactive measure enhances security by preventing repeated attacks from known bad actors.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">How to Use It?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Whitelist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Edit Fail2Ban Configuration File:<\/strong> In Fail2Ban&#8217;s configuration file (<code>jail.local<\/code> or <code>jail.conf<\/code>), add the IP addresses you wish to whitelist under the <code>ignoreip<\/code> setting. This ensures these IP addresses are always allowed to access your server without restriction.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[DEFAULT]\r\nignoreip = 127.0.0.1\/8 ::1 IP_ADDRESS_1 IP_ADDRESS_2\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>Here, <code>IP_ADDRESS_1<\/code>, <code>IP_ADDRESS_2<\/code>, etc., are the IP addresses you want to whitelist. These addresses will bypass Fail2Ban&#8217;s security checks, ensuring uninterrupted access to your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Blacklist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Create Your Own Blacklist Filter:<\/strong> In the <code>\/etc\/fail2ban\/filter.d<\/code> directory, create a custom blacklist filter. For example, create a file named <code>myblacklist.conf<\/code> and configure it as follows:<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[Definition]\r\nfailregex = ^&lt;HOST&gt;$\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:paragraph -->\r\n<p><strong>Configure a Blacklist Jail:<\/strong> In the <code>\/etc\/fail2ban\/jail.local<\/code> file, add a new jail configuration using this filter. For example:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[myblacklist]\r\nenabled = true\r\nfilter = myblacklist\r\nlogpath = \/var\/log\/myblacklist.log\r\naction = iptables-allports[name=myblacklist]\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>In this configuration, you&#8217;ll need to manually create the <code>myblacklist.log<\/code> file and add the malicious IP addresses you&#8217;ve identified to this file. This ensures that these threats are continuously blocked from accessing your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">What Are Its Components?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> A list of IP addresses that Fail2Ban will permanently block. This list is crucial for maintaining a secure environment by preventing access from known malicious sources.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Is It Important?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Creating a whitelist and blacklist with Fail2Ban provides the ability to administrators significant customize server security, reducing false positives and proactively blocking specific threats. These methods enhance the flexibility of Fail2Ban and the security of your server. Implementing these lists ensures that your server is protected from unauthorized access while allowing trusted users uninterrupted access.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Whitelisting and blacklisting with Fail2Ban offer administrators significant flexibility in managing server security. They facilitate access from trusted sources while proactively blocking known threats, further strengthening your server&#8217;s security posture. For a more comprehensive guide, visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>. This step is crucial for enhancing the overall protection of your server.<\/p>\r\n<\/div>\r\n<\/div><!-- \/wp:paragraph --><!-- \/wp:column --><!-- wp:post-content --><!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<p class=\"has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\">Fail2Ban is a tool that blocks malicious IP addresses to improve server security. However, in some cases, you may want to always consider certain IP addresses safe (whitelist) or block them outright (blacklist). Creating whitelists and blacklists with Fail2Ban is one way to meet these needs. For more detailed steps, you can visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":9847,\"width\":\"334px\",\"height\":\"auto\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"400\" height=\"243\" class=\"wp-image-9847\" style=\"width: 334px; height: auto;\" src=\"https:\/\/www.sunucun.com.tr\/blog\/\/wp-content\/uploads\/2024\/03\/fail2ban.webp\" alt=\"Fail2Ban whitelist and blacklist configuration\" srcset=\"https:\/\/sunucun.com.tr\/blog\/wp-content\/uploads\/2024\/03\/fail2ban.webp 400w, https:\/\/sunucun.com.tr\/blog\/wp-content\/uploads\/2024\/03\/fail2ban-300x182.webp 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/>\r\n<figcaption>Configuring whitelist and blacklist in Fail2Ban to enhance server security.<\/figcaption>\r\n<\/figure>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:columns {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<div class=\"wp-block-columns has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\"><!-- wp:column -->\r\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for a more tailored and effective server security strategy.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Whitelist and Blacklist?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> Reduces the risk of accidentally blocking traffic from trusted sources, A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. such as business partners, customers, or internal networks. This ensures uninterrupted service for essential connections while maintaining high security standards.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> Permanently blocks IP addresses A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. that persistently engage in malicious activities or are identified as a specific threat. This proactive measure enhances security by preventing repeated attacks from known bad actors.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">How to Use It?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Whitelist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Edit Fail2Ban Configuration File:<\/strong> In Fail2Ban&#8217;s configuration file (<code>jail.local<\/code> or <code>jail.conf<\/code>), add the IP addresses you wish to whitelist under the <code>ignoreip<\/code> setting. This ensures these IP addresses are always allowed to access your server without restriction.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[DEFAULT]\r\nignoreip = 127.0.0.1\/8 ::1 IP_ADDRESS_1 IP_ADDRESS_2\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>Here, <code>IP_ADDRESS_1<\/code>, <code>IP_ADDRESS_2<\/code>, etc., are the IP addresses you want to whitelist. These addresses will bypass Fail2Ban&#8217;s security checks, ensuring uninterrupted access to your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Blacklist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Create Your Own Blacklist Filter:<\/strong> In the <code>\/etc\/fail2ban\/filter.d<\/code> directory, create a custom blacklist filter. For example, create a file named <code>myblacklist.conf<\/code> and configure it as follows:<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[Definition]\r\nfailregex = ^&lt;HOST&gt;$\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:paragraph -->\r\n<p><strong>Configure a Blacklist Jail:<\/strong> In the <code>\/etc\/fail2ban\/jail.local<\/code> file, add a new jail configuration using this filter. For example:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[myblacklist]\r\nenabled = true\r\nfilter = myblacklist\r\nlogpath = \/var\/log\/myblacklist.log\r\naction = iptables-allports[name=myblacklist]\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>In this configuration, you&#8217;ll need to manually create the <code>myblacklist.log<\/code> file and add the malicious IP addresses you&#8217;ve identified to this file. This ensures that these threats are continuously blocked from accessing your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">What Are Its Components?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> A list of IP addresses that Fail2Ban will permanently block. This list is crucial for maintaining a secure environment by preventing access from known malicious sources.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Is It Important?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Creating a whitelist and blacklist with Fail2Ban provides the ability to administrators significant customize server security, reducing false positives and proactively blocking specific threats. These methods enhance the flexibility of Fail2Ban and the security of your server. Implementing these lists ensures that your server is protected from unauthorized access while allowing trusted users uninterrupted access.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Whitelisting and blacklisting with Fail2Ban offer administrators significant flexibility in managing server security. They facilitate access from trusted sources while proactively blocking known threats, further strengthening your server&#8217;s security posture. For a more comprehensive guide, visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>. This step is crucial for enhancing the overall protection of your server.<\/p>\r\n<\/div>\r\n<\/div><!-- \/wp:post-content --><!-- \/wp:post-content --><!-- \/wp:post-content --><!-- \/wp:columns --><!-- wp:post-content --><!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<p class=\"has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\">Fail2Ban is a tool that blocks malicious IP addresses to improve server security. However, in some cases, you may want to always consider certain IP addresses safe (whitelist) or block them outright (blacklist). Creating whitelists and blacklists with Fail2Ban is one way to meet these needs. For more detailed steps, you can visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":9847,\"width\":\"334px\",\"height\":\"auto\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"400\" height=\"243\" class=\"wp-image-9847\" style=\"width: 334px; height: auto;\" src=\"https:\/\/www.sunucun.com.tr\/blog\/\/wp-content\/uploads\/2024\/03\/fail2ban.webp\" alt=\"Fail2Ban whitelist and blacklist configuration\" srcset=\"https:\/\/sunucun.com.tr\/blog\/wp-content\/uploads\/2024\/03\/fail2ban.webp 400w, https:\/\/sunucun.com.tr\/blog\/wp-content\/uploads\/2024\/03\/fail2ban-300x182.webp 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/>\r\n<figcaption>Configuring whitelist and blacklist in Fail2Ban to enhance server security.<\/figcaption>\r\n<\/figure>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:columns {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<div class=\"wp-block-columns has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\"><!-- wp:column -->\r\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for a more tailored and effective server security strategy.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Whitelist and Blacklist?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> Reduces the risk of accidentally blocking traffic from trusted sources, A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. such as business partners, customers, or internal networks. This ensures uninterrupted service for essential connections while maintaining high security standards.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> Permanently blocks IP addresses A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. that persistently engage in malicious activities or are identified as a specific threat. This proactive measure enhances security by preventing repeated attacks from known bad actors.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">How to Use It?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Whitelist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Edit Fail2Ban Configuration File:<\/strong> In Fail2Ban&#8217;s configuration file (<code>jail.local<\/code> or <code>jail.conf<\/code>), add the IP addresses you wish to whitelist under the <code>ignoreip<\/code> setting. This ensures these IP addresses are always allowed to access your server without restriction.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[DEFAULT]\r\nignoreip = 127.0.0.1\/8 ::1 IP_ADDRESS_1 IP_ADDRESS_2\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>Here, <code>IP_ADDRESS_1<\/code>, <code>IP_ADDRESS_2<\/code>, etc., are the IP addresses you want to whitelist. These addresses will bypass Fail2Ban&#8217;s security checks, ensuring uninterrupted access to your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Blacklist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Create Your Own Blacklist Filter:<\/strong> In the <code>\/etc\/fail2ban\/filter.d<\/code> directory, create a custom blacklist filter. For example, create a file named <code>myblacklist.conf<\/code> and configure it as follows:<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[Definition]\r\nfailregex = ^&lt;HOST&gt;$\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:paragraph -->\r\n<p><strong>Configure a Blacklist Jail:<\/strong> In the <code>\/etc\/fail2ban\/jail.local<\/code> file, add a new jail configuration using this filter. For example:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[myblacklist]\r\nenabled = true\r\nfilter = myblacklist\r\nlogpath = \/var\/log\/myblacklist.log\r\naction = iptables-allports[name=myblacklist]\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>In this configuration, you&#8217;ll need to manually create the <code>myblacklist.log<\/code> file and add the malicious IP addresses you&#8217;ve identified to this file. This ensures that these threats are continuously blocked from accessing your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">What Are Its Components?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> A list of IP addresses that Fail2Ban will permanently block. This list is crucial for maintaining a secure environment by preventing access from known malicious sources.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Is It Important?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Creating a whitelist and blacklist with Fail2Ban provides the ability to administrators significant customize server security, reducing false positives and proactively blocking specific threats. These methods enhance the flexibility of Fail2Ban and the security of your server. Implementing these lists ensures that your server is protected from unauthorized access while allowing trusted users uninterrupted access.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Whitelisting and blacklisting with Fail2Ban offer administrators significant flexibility in managing server security. They facilitate access from trusted sources while proactively blocking known threats, further strengthening your server&#8217;s security posture. For a more comprehensive guide, visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>. This step is crucial for enhancing the overall protection of your server.<\/p>\r\n<\/div>\r\n<\/div><!-- \/wp:paragraph --><!-- \/wp:column --><!-- \/wp:columns -->\r\n\r\n<!-- wp:columns {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<div class=\"wp-block-columns has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\"><!-- wp:column -->\r\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for a more tailored and effective server security strategy.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Whitelist and Blacklist?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> Reduces the risk of accidentally blocking traffic from trusted sources, A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. such as business partners, customers, or internal networks. This ensures uninterrupted service for essential connections while maintaining high security standards.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> Permanently blocks IP addresses A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. that persistently engage in malicious activities or are identified as a specific threat. This proactive measure enhances security by preventing repeated attacks from known bad actors.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">How to Use It?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Whitelist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Edit Fail2Ban Configuration File:<\/strong> In Fail2Ban&#8217;s configuration file (<code>jail.local<\/code> or <code>jail.conf<\/code>), add the IP addresses you wish to whitelist under the <code>ignoreip<\/code> setting. This ensures these IP addresses are always allowed to access your server without restriction.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[DEFAULT]\r\nignoreip = 127.0.0.1\/8 ::1 IP_ADDRESS_1 IP_ADDRESS_2\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>Here, <code>IP_ADDRESS_1<\/code>, <code>IP_ADDRESS_2<\/code>, etc., are the IP addresses you want to whitelist. These addresses will bypass Fail2Ban&#8217;s security checks, ensuring uninterrupted access to your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Blacklist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Create Your Own Blacklist Filter:<\/strong> In the <code>\/etc\/fail2ban\/filter.d<\/code> directory, create a custom blacklist filter. For example, create a file named <code>myblacklist.conf<\/code> and configure it as follows:<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[Definition]\r\nfailregex = ^&lt;HOST&gt;$\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:paragraph -->\r\n<p><strong>Configure a Blacklist Jail:<\/strong> In the <code>\/etc\/fail2ban\/jail.local<\/code> file, add a new jail configuration using this filter. For example:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[myblacklist]\r\nenabled = true\r\nfilter = myblacklist\r\nlogpath = \/var\/log\/myblacklist.log\r\naction = iptables-allports[name=myblacklist]\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>In this configuration, you&#8217;ll need to manually create the <code>myblacklist.log<\/code> file and add the malicious IP addresses you&#8217;ve identified to this file. This ensures that these threats are continuously blocked from accessing your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">What Are Its Components?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> A list of IP addresses that Fail2Ban will permanently block. This list is crucial for maintaining a secure environment by preventing access from known malicious sources.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Is It Important?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Creating a whitelist and blacklist with Fail2Ban provides the ability to administrators significant customize server security, reducing false positives and proactively blocking specific threats. These methods enhance the flexibility of Fail2Ban and the security of your server. Implementing these lists ensures that your server is protected from unauthorized access while allowing trusted users uninterrupted access.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Whitelisting and blacklisting with Fail2Ban offer administrators significant flexibility in managing server security. They facilitate access from trusted sources while proactively blocking known threats, further strengthening your server&#8217;s security posture. For a more comprehensive guide, visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>. This step is crucial for enhancing the overall protection of your server.<\/p>\r\n<\/div>\r\n<\/div><!-- \/wp:paragraph --><!-- \/wp:column --><!-- wp:post-content --><!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<p class=\"has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\">Fail2Ban is a tool that blocks malicious IP addresses to improve server security. However, in some cases, you may want to always consider certain IP addresses safe (whitelist) or block them outright (blacklist). Creating whitelists and blacklists with Fail2Ban is one way to meet these needs. For more detailed steps, you can visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:image {\"id\":9847,\"width\":\"334px\",\"height\":\"auto\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\r\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" fetchpriority=\"high\" decoding=\"async\" width=\"400\" height=\"243\" class=\"wp-image-9847\" style=\"width: 334px; height: auto;\" src=\"https:\/\/www.sunucun.com.tr\/blog\/\/wp-content\/uploads\/2024\/03\/fail2ban.webp\" alt=\"Fail2Ban whitelist and blacklist configuration\" srcset=\"https:\/\/sunucun.com.tr\/blog\/wp-content\/uploads\/2024\/03\/fail2ban.webp 400w, https:\/\/sunucun.com.tr\/blog\/wp-content\/uploads\/2024\/03\/fail2ban-300x182.webp 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/>\r\n<figcaption>Configuring whitelist and blacklist in Fail2Ban to enhance server security.<\/figcaption>\r\n<\/figure>\r\n<!-- \/wp:image -->\r\n\r\n<!-- wp:columns {\"style\":{\"color\":{\"text\":\"#000000\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#000000\"}}}},\"fontSize\":\"medium\"} -->\r\n<div class=\"wp-block-columns has-text-color has-link-color has-medium-font-size\" style=\"color: #000000;\"><!-- wp:column -->\r\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for a more tailored and effective server security strategy.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Whitelist and Blacklist?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> Reduces the risk of accidentally blocking traffic from trusted sources, A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. such as business partners, customers, or internal networks. This ensures uninterrupted service for essential connections while maintaining high security standards.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> Permanently blocks IP addresses A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services. that persistently engage in malicious activities or are identified as a specific threat. This proactive measure enhances security by preventing repeated attacks from known bad actors.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">How to Use It?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Whitelist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Edit Fail2Ban Configuration File:<\/strong> In Fail2Ban&#8217;s configuration file (<code>jail.local<\/code> or <code>jail.conf<\/code>), add the IP addresses you wish to whitelist under the <code>ignoreip<\/code> setting. This ensures these IP addresses are always allowed to access your server without restriction.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[DEFAULT]\r\nignoreip = 127.0.0.1\/8 ::1 IP_ADDRESS_1 IP_ADDRESS_2\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>Here, <code>IP_ADDRESS_1<\/code>, <code>IP_ADDRESS_2<\/code>, etc., are the IP addresses you want to whitelist. These addresses will bypass Fail2Ban&#8217;s security checks, ensuring uninterrupted access to your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":4} -->\r\n<h4 class=\"wp-block-heading\">Creating a Blacklist<\/h4>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li><strong>Create Your Own Blacklist Filter:<\/strong> In the <code>\/etc\/fail2ban\/filter.d<\/code> directory, create a custom blacklist filter. For example, create a file named <code>myblacklist.conf<\/code> and configure it as follows:<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[Definition]\r\nfailregex = ^&lt;HOST&gt;$\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:paragraph -->\r\n<p><strong>Configure a Blacklist Jail:<\/strong> In the <code>\/etc\/fail2ban\/jail.local<\/code> file, add a new jail configuration using this filter. For example:<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:code -->\r\n<pre class=\"wp-block-code\"><code>[myblacklist]\r\nenabled = true\r\nfilter = myblacklist\r\nlogpath = \/var\/log\/myblacklist.log\r\naction = iptables-allports[name=myblacklist]\r\n<\/code><\/pre>\r\n<!-- \/wp:code -->\r\n\r\n<!-- wp:list {\"ordered\":true} -->\r\n<ol><!-- wp:list-item -->\r\n<li>In this configuration, you&#8217;ll need to manually create the <code>myblacklist.log<\/code> file and add the malicious IP addresses you&#8217;ve identified to this file. This ensures that these threats are continuously blocked from accessing your server.<\/li>\r\n<!-- \/wp:list-item --><\/ol>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">What Are Its Components?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:list -->\r\n<ul><!-- wp:list-item -->\r\n<li><strong>Whitelist:<\/strong> A list of trusted IP addresses that Fail2Ban will ignore. This list ensures that important IP addresses are not mistakenly blocked, allowing for smooth operation of critical services.<\/li>\r\n<!-- \/wp:list-item -->\r\n\r\n<!-- wp:list-item -->\r\n<li><strong>Blacklist:<\/strong> A list of IP addresses that Fail2Ban will permanently block. This list is crucial for maintaining a secure environment by preventing access from known malicious sources.<\/li>\r\n<!-- \/wp:list-item --><\/ul>\r\n<!-- \/wp:list -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Why Is It Important?<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Creating a whitelist and blacklist with Fail2Ban provides the ability to administrators significant customize server security, reducing false positives and proactively blocking specific threats. These methods enhance the flexibility of Fail2Ban and the security of your server. Implementing these lists ensures that your server is protected from unauthorized access while allowing trusted users uninterrupted access.<\/p>\r\n<!-- \/wp:paragraph -->\r\n\r\n<!-- wp:heading {\"level\":3} -->\r\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\r\n<!-- \/wp:heading -->\r\n\r\n<!-- wp:paragraph -->\r\n<p>Whitelisting and blacklisting with Fail2Ban offer administrators significant flexibility in managing server security. They facilitate access from trusted sources while proactively blocking known threats, further strengthening your server&#8217;s security posture. For a more comprehensive guide, visit <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-whitelist-and-blacklist-with-fail2ban\/\">How to Create Whitelist and Blacklist with Fail2Ban<\/a>. This step is crucial for enhancing the overall protection of your server.<\/p>\r\n<\/div>\r\n<\/div><!-- \/wp:post-content --><!-- \/wp:post-content --><!-- \/wp:post-content -->","protected":false},"excerpt":{"rendered":"<p>Introduction Fail2Ban provides protection against automated attack attempts, but sometimes, it&#8217;s necessary to manually ensure that traffic from certain IP addresses is either always allowed through (whitelist) or always blocked (blacklist). Whitelisting helps prevent legitimate access from being inadvertently blocked, while blacklisting helps to proactively keep known threats at bay. This dual approach allows for&hellip;<\/p>\n","protected":false},"author":1,"featured_media":9833,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1519],"tags":[],"class_list":["post-9871","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sanal-sunucu"],"_links":{"self":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/9871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=9871"}],"version-history":[{"count":1,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/9871\/revisions"}],"predecessor-version":[{"id":19614,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/9871\/revisions\/19614"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media\/9833"}],"wp:attachment":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=9871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=9871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=9871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}