<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Prometheus can&#x27;t reach node exporter (Blocked traffic)]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I'm facing an issue where Prometheus is unable to scrape Node Exporter running on the host at <a href="http://172.18.0.1:9100/metrics" target="_blank" rel="noopener noreferrer nofollow ugc">http://172.18.0.1:9100/metrics</a>. The request times out with the following error:</p>
<p dir="auto">Error scraping target: Get "<a href="http://172.18.0.1:9100/metrics" target="_blank" rel="noopener noreferrer nofollow ugc">http://172.18.0.1:9100/metrics</a>": context deadline exceeded</p>
<p dir="auto">From the syslog, I see the following dropped packet:</p>
<p dir="auto">2025-02-11T17:20:13.907565+00:00 my kernel: Packet dropped: IN=br-xxx OUT= MAC=xxx SRC=172.18.18.148 DST=172.18.0.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=54789 DF PROTO=TCP SPT=44028 DPT=9100 WINDOW=64240 RES=0x00 SYN URGP=0</p>
<p dir="auto">This confirms that the firewall is dropping packets from the Prometheus container (172.18.18.148) when trying to reach Node Exporter on 172.18.0.1:9100.</p>
<p dir="auto">I’ve tried to manually add an iptables rule without success:</p>
<p dir="auto">iptables -I DOCKER-USER -s 172.18.0.0/16 -d 172.18.0.1 -p tcp --dport 9100 -j ACCEPT</p>
<p dir="auto">Testing connectivity from the Prometheus container:</p>
<pre><code>docker exec -it $(docker ps | grep prometheus | awk '{print $1}') sh
curl -v http://172.18.0.1:9100/metrics

Result: The request hangs, confirming the firewall is blocking access.
</code></pre>
<p dir="auto">This issue started after upgrading to Cloudron 8.2.3.</p>
<p dir="auto">How can I persistently allow Prometheus to access 172.18.0.1:9100 within Cloudron’s firewall?</p>
<p dir="auto">Any help would be greatly appreciated! Thanks in advance.</p>
]]></description><link>https://forum.cloudron.io/topic/13280/prometheus-can-t-reach-node-exporter-blocked-traffic</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 16:14:39 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13280.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Feb 2025 18:44:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Prometheus can&#x27;t reach node exporter (Blocked traffic) on Mon, 17 Feb 2025 14:00:07 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your reply.</p>
<p dir="auto">We are monitoring some Cloudron metrics with Prometheus (e.g. disk space).</p>
<p dir="auto">What's implied from what you say makes sense from the security point of view.</p>
<p dir="auto">We have to think about how to monitor Cloudron using different methods.</p>
]]></description><link>https://forum.cloudron.io/post/101868</link><guid isPermaLink="true">https://forum.cloudron.io/post/101868</guid><dc:creator><![CDATA[abset]]></dc:creator><pubDate>Mon, 17 Feb 2025 14:00:07 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus can&#x27;t reach node exporter (Blocked traffic) on Mon, 17 Feb 2025 11:25:29 GMT]]></title><description><![CDATA[<p dir="auto">The apps cannot access localhost (they run on a custom network) and they can only access specific ports on the bridge (172.18.0.1).</p>
<p dir="auto">Generally, we don't support these kinds of custom setups. But hey, it's your server <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> If you are feeling brave:</p>
<p dir="auto">iptables -t filter -A CLOUDRON -p tcp -s 172.18.0.0/16 -d 172.18.0.1 --dport 9100 -j ACCEPT</p>
<p dir="auto">That allows containers to access port 9100 on the bridge. You have to put this in some start up file to make it persist reboots. Maybe a service that runs after cloudron-firewall.service.</p>
]]></description><link>https://forum.cloudron.io/post/101853</link><guid isPermaLink="true">https://forum.cloudron.io/post/101853</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 17 Feb 2025 11:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus can&#x27;t reach node exporter (Blocked traffic) on Sun, 16 Feb 2025 22:31:15 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your reply!</p>
<p dir="auto">To clarify, Prometheus is running as a Cloudron app, and Node Exporter is running directly on the host (not in a container). Prometheus needs to scrape metrics from <a href="http://172.18.0.1:9100/metrics" target="_blank" rel="noopener noreferrer nofollow ugc">http://172.18.0.1:9100/metrics</a>, but Cloudron's firewall is blocking this traffic.</p>
<p dir="auto">Since Node Exporter is on the host, I can't use --net cloudron. Is there a recommended way to allow Cloudron apps to access host services?</p>
]]></description><link>https://forum.cloudron.io/post/101827</link><guid isPermaLink="true">https://forum.cloudron.io/post/101827</guid><dc:creator><![CDATA[abset]]></dc:creator><pubDate>Sun, 16 Feb 2025 22:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus can&#x27;t reach node exporter (Blocked traffic) on Wed, 12 Feb 2025 06:20:04 GMT]]></title><description><![CDATA[<p dir="auto">Trying to understand the setup here. Prometheus itself is an app on Cloudron and  the run node exporter is a docker container directly on Cloudron?</p>
<p dir="auto">We don't support running external containers this way, but if you are OK with that... Are you running node_exporter with --net host ? You can try --net cloudron instead. The <code>cloudron</code> internal network is where all the apps run. Apps should be able to talk to each other without firewall rules.</p>
]]></description><link>https://forum.cloudron.io/post/101618</link><guid isPermaLink="true">https://forum.cloudron.io/post/101618</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Wed, 12 Feb 2025 06:20:04 GMT</pubDate></item></channel></rss>