Feature Request: Local Allowlist for IP Address Blocklists

Greets from a tired and frustrated swede on 203.

I would like to suggest adding a local allowlist (exception mechanism) to IPFire’s IP Address Blocklists feature.

Yesterday, I experienced a complete loss of access to my hosting provider’s web and mail services. Wife and other members of family started shouting after like 5 seconds. We are both active in the regional government and our mail addresses are on several emergency lists. NOT good, rather disastrous actually.

After investigating the problem with my webhosting provider for what seemed a very long time, and local traceroute, TCP connectivity tests and packet captures on both GREEN and RED, I discovered that the hosting server’s IP address had been added to BLOCKLIST_DE.

The address was 185.189.48.4, belonging to Inleed, a Swedish hosting provider. The underlying Blocklist.de report concerned a single SIP-related incident reported by a PBX server on November 2, 2026. !!!

Consequently, IPFire blocked my outgoing TCP connections to that IP address, including HTTP, HTTPS and IMAPS, even though those services were unrelated to the reported SIP incident.

ICMP continued to work because it was excluded from the blocklist rule. Removing the address manually with ipset del restored connectivity, but the address was added again during the next blocklist update.

I believe this illustrates a limitation of the current implementation.

Suggested improvement

Provide a configurable local allowlist for IP Address Blocklists, preferably through the web interface.

Ideally, this would support:

  • Individual IP addresses and CIDR networks.
  • Exceptions applying to specific blocklists or all enabled blocklists.
  • Persistent exceptions surviving blocklist updates and firewall restarts.
  • Logging or visibility of which addresses have been excluded.

The objective would not be to weaken the blocklist functionality, but to give administrators a controlled way to handle false positives or legitimate services sharing an IP address with potentially unwanted activity.

I found an earlier discussion from January 2023 describing essentially the same problem: How to create whitelist to IP for "IP Address Blocklists"?

Add a simpler exclusion method.

Update – Temporary workaround implemented

After analyzing and looking up a few things, I grabbed my local LLM and started to look for workarounds.


I have now implemented a local workaround using /etc/sysconfig/firewall.local.

Two exceptions were required:

  • BLOCKLISTOUT: A RETURN rule allowing traffic from GREEN (192.168.10.0/25) to the affected server (185.189.48.4).

  • BLOCKLISTIN: A corresponding RETURN rule for traffic returning from that server to GREEN.

Interestingly, allowing outbound traffic alone was insufficient. Packet captures confirmed that SYN packets reached the server and SYN-ACK responses returned to RED, but were blocked before reaching GREEN.

Both exceptions use RETURN rather than ACCEPT, so the remaining firewall rules continue to apply.

The rules were added to the start section of firewall.local, with corresponding removal commands under stop. Checks using iptables -C prevent duplicate rules.

We triple-checked every command, verified the shell syntax, inspected the resulting iptables chains, and confirmed that HTTPS connectivity was restored.

Current status: Working.

Persistence across IPFire Core Updates and automatic blocklist updates has not yet been verified. I have an upcoming Core Update and will check afterwards.

This workaround solves my immediate problem, but I still believe a native allowlist mechanism in the WebUI would be a valuable addition to IPFire.

At least the family has stopped complaining. For now. :slightly_smiling_face:

The present block / allow list should work with sub netting.
I have not done this myself do to having to re-address my network.
You can report false positives. They seam to be handled quickly.

It was of course reported, but the larger topic here would be to locally whitelist from the lists. Like we can on the DNS Firewall.

Have a look at Firewall-local add-on - #4 by hjkl - I have build that IPFire module to allow iptables changes like the one you need.

Appreciated, will look at it, but if it is not here Add-ons - IPFire I am probably not going to use it.