# DROP\_HOSTILE blocking legit traffic

**URL:** <https://community.ipfire.org/t/drop-hostile-blocking-legit-traffic/16176>\
**Category:** Security\
**Created:** [30 September 2026 18:09 UTC](https://community.ipfire.org/t/drop-hostile-blocking-legit-traffic/16176 "2026-09-30T18:09:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjkl](https://community.ipfire.org/user_avatar/community.ipfire.org/hjkl/32/8574_2.png) [@hjkl](https://community.ipfire.org/u/hjkl)\
**Post date:** [30 September 2026 18:09 UTC](https://community.ipfire.org/t/drop-hostile-blocking-legit-traffic/16176/1 "2026-09-30T18:09:10Z")

</div>

I am currently running into an issue where legitimate traffic is being flagged and logged under `DROP_HOSTILE`. Specifically, routine CDN connections and API requests are triggering these kernel drops because entire hosting or CDN ranges appear to be blanket-blocked as hostile.

For example, I’ve observed traffic getting dropped for:

- **i.postimg.cc** (resolved to `162.251.63.43`, ASN `AS63023 - GTHost`) which is a legitimate image hosting service.

- **Huawei Cloud CDN nodes** (under ranges like `38.54.123.0/24`, ASN `AS138915 - Kaopu Cloud HK Limited`) tied to valid certificates belonging to Huawei Software Technologies Co., Ltd., which my devices rely on for normal operations.

**Since these blocks impact legitimate usage, I am searching for a reason why these are blocked by `DROP_HOSTILE`?**

External sources:  
Huawei Certificate being logged for 38.54.123.57 IP logged by IPfire in Drop\_HOSTILE logs: [VirusTotal](https://www.virustotal.com/gui/ip-address/38.54.123.57/details)  
OTX shows zero threats associated with that Huawei CDN IP: [LevelBlue - Open Threat Exchange](https://otx.alienvault.com/indicator/ip/38.54.123.57)

How many of these:

```auto
 grep DROP_HOSTILE /var/log/messages | grep -v " DPT=443" | grep "38.54.123.5" | wc
     45 1080 11560

```

**i.postimg.cc**

```auto
 dig i.postimg.cc; location lookup 162.251.63.43

; <<>> DiG 9.20.18 <<>> i.postimg.cc
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29613
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;i.postimg.cc. IN A

;; ANSWER SECTION:
i.postimg.cc. 643 IN A 162.251.63.43

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Wed Sep 30 21:06:17 EEST 2026
;; MSG SIZE rcvd: 57

162.251.63.43:
  Network : 162.251.62.0/23
  Country : United States of America
  Autonomous System : AS63023 - GTHost
  Hostile Network safe to drop: yes
grep DROP_HOSTILE /var/log/messages | grep " DPT=443" | wc
    342 8208 88265

38.54.123.57:
  Network : 38.54.123.0/24
  Country : United States of America
  Autonomous System : AS138915 - Kaopu Cloud HK Limited
  Hostile Network safe to drop: yes

```

**Late edit:** DPT=123 withy source IP = red0 also hit DROP\_HOSTILE: I was using `europe.pool.ntp` for Time service and IPFire tried to reached some valid NTP servers under blanked ASN block. That was fixed by setting IPFire to use Germany based NTP servers instead entire Europe pool. But, the surprise to see NTP servers registered under Europe pool being blocked was quite big. I thought that as long as Time service is powered on the FW will ensure that daemon can reach any NTP server on the planet.

```auto
zgrep DROP_HOSTILE /var/log/messages* | grep "IN= OUT=ppp0" | grep "DPT=123"| wc
   1160 23208 232213

 zgrep DROP_HOSTILE /var/log/messages* | grep "IN= OUT=ppp0" | grep -v "DPT=123"| wc
      0 0 0

```

So all DROP\_HOSTILE coming from IPFire itself was for NTP sync.

---

<div class="post-metadata">

**Author:** ![rachelwilson](https://community.ipfire.org/user_avatar/community.ipfire.org/rachelwilson/32/15774_2.png) [@rachelwilson](https://community.ipfire.org/u/rachelwilson)\
**Post date:** [3 October 2026 23:00 UTC](https://community.ipfire.org/t/drop-hostile-blocking-legit-traffic/16176/2 "2026-10-03T23:00:57Z")

</div>

thats normal for drop hostile, it flags by announced network not by individual ip. whole hosting ranges get marked off abuse reports against the provider, so legit stuff sitting on those ranges gets caught too, ntp pool servers included. only real fix is whitelisting the specific ips or ranges in a firewall group and allowing them above the hostile rule.

---

<div class="post-metadata">

**Author:** ![rachelwilson](https://community.ipfire.org/user_avatar/community.ipfire.org/rachelwilson/32/15774_2.png) [@rachelwilson](https://community.ipfire.org/u/rachelwilson)\
**Post date:** [9 October 2026 01:06 UTC](https://community.ipfire.org/t/drop-hostile-blocking-legit-traffic/16176/3 "2026-10-09T01:06:54Z")

</div>

quick followup to my own reply above: i dug into the actual mechanism and wrote it up properly here: [https://vectle.com/skills/skl\_P10Gn6WH8a1isIx35CrqHA](https://vectle.com/skills/skl_P10Gn6WH8a1isIx35CrqHA). the short version: the hostile chains are evaluated before your own firewall rules, so a web ui allow rule cant override the drop. the reliable fix is inserting accept rules at the top of the HOSTILE\_DROP\_IN/OUT chains via /etc/sysconfig/firewall.local, then watch the logs to confirm the drop\_hostile lines for that ip stop. your location lookup output is exactly how you confirm which announced network is flagged.

---

<div class="post-metadata">

**Author:** ![hjkl](https://community.ipfire.org/user_avatar/community.ipfire.org/hjkl/32/8574_2.png) [@hjkl](https://community.ipfire.org/u/hjkl)\
**Post date:** [9 October 2026 12:57 UTC](https://community.ipfire.org/t/drop-hostile-blocking-legit-traffic/16176/4 "2026-10-09T12:57:54Z")

</div>

I was aware of the firewall chain design and the lack of support in UI to build a rule that bypass so (SO!) many chains controlled by standard config.

This is the reason I have build these tools, one being a custom IPFire add-on:

Firewall diagram to expose the order of the chain for each table:

> [@Firewall Diagram](https://community.ipfire.org/t/firewall-diagram/15469/9):
>
> Version [1.5.1](https://github.com/horace-michael/diagraph-ipfire/releases/tag/v1.5.1) is released - nat and mangle tables fully expanded. Newly visible chains include SQUID (transparent proxy in nat/PREROUTING), IPS/Suricata chains (in mangle INPUT/FORWARD/OUTPUT), and CAPTIVE\_PORTAL (nat/PREROUTING).

A custom Firewall Local add-on with the ability to add to it any of the chains I see in the diagram and use them.

> [@Firewall-local add-on](https://community.ipfire.org/t/firewall-local-add-on/15885):
>
> New add-on: Firewall-Local — modular firewall orchestration for IPFire Firewall-Local is an IPFire add-on that manages iptables/ipset rules through a small set of master-list files and a web UI, shipped as a standard .ipfire package. It adds five rule modules on top of IPFire’s native firewall, each with its own CGI page. The integration is achieved via /etc/sysconfig/firewall.local. Location Allow — INBOUND country allowlist. Default posture is drop everything; only the countries you add ca…

Plus, to overcome the limitations of my add-on (iptables does have some limits in a command structure) that add-on can consume custom scripts with dedicated syntax for special cases: allow any UDP 43 traffic (whois protocol) way above any chain that might block it: HOSTILE, LOCATION, any chain.

My question was rather a design one: knowing that UI does not allow us to create custom rules to bypass some of the chains, and some traffic is really critical for the box to function (NTP, DNS, arguably other - like whois used for investigating who is the attack that pounds my OpenVPN service once every 2 seconds), all that considered, I wonder if the design took these cases in consideration.

IPFire is the designated NTP server for my network - so if that fails to stay in sync, my clients using it will generate quite a few abnormal behaviors.
