# Fail2ban dont work properly

**URL:** <https://community.learnlinux.tv/t/fail2ban-dont-work-properly/4154>\
**Category:** Linux on Servers\
**Created:** [September 12, 2024, 11:33am UTC](https://community.learnlinux.tv/t/fail2ban-dont-work-properly/4154 "2024-09-12T11:33:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Havouza15](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/h/e8c25b/32.png) [@Havouza15](https://community.learnlinux.tv/u/Havouza15)\
**Post date:** [September 12, 2024, 11:33am UTC](https://community.learnlinux.tv/t/fail2ban-dont-work-properly/4154/1 "2024-09-12T11:33:21Z")

</div>

I try to get the installed fail2ban to ignore the ip I have from home office. I have read all tutorials and forum posts I can find without luck.

What I want to do is to add a ignoreip but I have done as all states but fail2ban still ban the ip address

Can I somehow check what ip is ignored/whitelisted

Par of fail2ban.local looks like this

[Definition]

[DEFAULT]

ignoreip = 1.2.3.4

What am I missing? manual say that ignoreself is default true

# “ignoreself” specifies whether the local resp. own IP addresses should be ignored

# (default is true). Fail2ban will not ban a host which matches such addresses.

Regards

Anders Yuran

---

<div class="post-metadata">

**Author:** ![ThatGuyB](https://community.learnlinux.tv/user_avatar/community.learnlinux.tv/thatguyb/32/784_2.png) [@ThatGuyB](https://community.learnlinux.tv/u/ThatGuyB)\
**Post date:** [September 12, 2024, 12:08pm UTC](https://community.learnlinux.tv/t/fail2ban-dont-work-properly/4154/2 "2024-09-12T12:08:52Z")

</div>

Have you tried the subnet, instead of the IP, for testing? Have you also tried the public IP? Add ignoreself = true just to be sure as well.

---

<div class="post-metadata">

**Author:** ![Havouza15](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/h/e8c25b/32.png) [@Havouza15](https://community.learnlinux.tv/u/Havouza15)\
**Post date:** [September 14, 2024, 11:13am UTC](https://community.learnlinux.tv/t/fail2ban-dont-work-properly/4154/3 "2024-09-14T11:13:41Z")

</div>

Thanks for that  
ignoreself should be default but as soon as I added it, everything works
