<?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[Cloudron overrides iptables-persistent]]></title><description><![CDATA[<p dir="auto">Hi all</p>
<p dir="auto">I need to have a few extra ports open on my home theater computer, which has cloudron installed as the "brain" for web-apps (nextcloud).</p>
<p dir="auto"><em>(So far I could not detect any conflict between cloudron and the other extra serverapps that is in need of these ekstra open ports (Virtualbox and its VM's))</em></p>
<p dir="auto">I have added these ekstra ports in iptables and saved the configuration with <strong>iptables-persistent</strong></p>
<p dir="auto">But when server/cloudron is restarted, cloudron overrides my iptables-persistent settings and clean out my extra iptablerules.</p>
<p dir="auto">How can I get cloudron to respect my extra iptables rules, and not wipe them every reboot/restart?</p>
]]></description><link>https://forum.cloudron.io/topic/1780/cloudron-overrides-iptables-persistent</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 18:55:00 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/1780.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 May 2019 12:45:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Mon, 18 Apr 2022 10:51:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/niko" aria-label="Profile: niko">@<bdi>niko</bdi></a> was there any error restarting cloudron-firewall service or such? This should still work as expected, so maybe you hit a bug somewhere?</p>
<p dir="auto">Also could you share your ports.json config here so we can try to reproduce this? If you don't want to expose your port settings here, you can also send them to <a href="mailto:support@cloudron.io" target="_blank" rel="noopener noreferrer nofollow ugc">support@cloudron.io</a></p>
]]></description><link>https://forum.cloudron.io/post/46290</link><guid isPermaLink="true">https://forum.cloudron.io/post/46290</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 18 Apr 2022 10:51:18 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Sun, 17 Apr 2022 20:42:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a><br />
i have followed <a href="https://source.infogulch.com/mirror/cloudron-docs/src/commit/50e07c4c322b9adee70efb03f4df5d270c1960be/knowledgebase/docs/networking.md#firewall" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> guide but it didn't work for me so i had to manually add ports to iptables in the end.</p>
<p dir="auto">i used to to this editing the ports.json file before and it worked as expected.</p>
]]></description><link>https://forum.cloudron.io/post/46276</link><guid isPermaLink="true">https://forum.cloudron.io/post/46276</guid><dc:creator><![CDATA[niko]]></dc:creator><pubDate>Sun, 17 Apr 2022 20:42:07 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Sat, 17 Oct 2020 12:17:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Great, everything worked as expected.</p>
]]></description><link>https://forum.cloudron.io/post/16220</link><guid isPermaLink="true">https://forum.cloudron.io/post/16220</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Sat, 17 Oct 2020 12:17:51 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Fri, 16 Oct 2020 18:40:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/necrevistonnezr" aria-label="Profile: necrevistonnezr">@<bdi>necrevistonnezr</bdi></a> yes</p>
]]></description><link>https://forum.cloudron.io/post/16182</link><guid isPermaLink="true">https://forum.cloudron.io/post/16182</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 16 Oct 2020 18:40:44 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Fri, 16 Oct 2020 18:33:39 GMT]]></title><description><![CDATA[<p dir="auto">So can we delete <code>/etc/iptables/rules.v4</code> and <code>/etc/iptables/rules.v6</code>?</p>
]]></description><link>https://forum.cloudron.io/post/16181</link><guid isPermaLink="true">https://forum.cloudron.io/post/16181</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Fri, 16 Oct 2020 18:33:39 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Fri, 16 Oct 2020 16:59:09 GMT]]></title><description><![CDATA[<p dir="auto">It's better to use Cloudron's built-in IP block list and port white list. I think maybe iptables persistent probably still works OK but we don't really test it actively.</p>
]]></description><link>https://forum.cloudron.io/post/16170</link><guid isPermaLink="true">https://forum.cloudron.io/post/16170</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 16 Oct 2020 16:59:09 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Fri, 16 Oct 2020 10:11:31 GMT]]></title><description><![CDATA[<p dir="auto">Now that we can <a href="https://docs.cloudron.io/networking/#whitelist-ports" target="_blank" rel="noopener noreferrer nofollow ugc">whitelist ports</a> (even though it <a href="https://forum.cloudron.io/topic/3443/networking-whitelist-ports-does-not-work-as-expected">might not work as expected?</a>), does it interfere with iptables-persistent? Should one remove the package and / or entries in <code>/etc/iptables/rules.v4</code> or <code>/etc/iptables/rules.v6</code>?</p>
]]></description><link>https://forum.cloudron.io/post/16153</link><guid isPermaLink="true">https://forum.cloudron.io/post/16153</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Fri, 16 Oct 2020 10:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Sat, 25 May 2019 00:16:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stoccafisso" aria-label="Profile: stoccafisso">@<bdi>stoccafisso</bdi></a> <a href="https://cloudron.io/documentation/security/#block-ips" target="_blank" rel="noopener noreferrer nofollow ugc">https://cloudron.io/documentation/security/#block-ips</a> has the necessary commands to make iptable changes persist.</p>
]]></description><link>https://forum.cloudron.io/post/3598</link><guid isPermaLink="true">https://forum.cloudron.io/post/3598</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 25 May 2019 00:16:57 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Thu, 23 May 2019 20:51:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> said in <a href="/post/3587">Cloudron overrides iptables-persistent</a>:</p>
<blockquote>
<p dir="auto">iptables-save &gt;/etc/iptables/rules.v4</p>
</blockquote>
<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> , that may be the problem, as I initially only ran the command</p>
<pre><code>iptables-save
</code></pre>
<p dir="auto">instead of</p>
<pre><code>iptables-save &gt;/etc/iptables/rules.v4
</code></pre>
<p dir="auto"><em>(I followed this guide: <a href="https://linuxconfig.org/how-to-make-iptables-rules-persistent-after-reboot-on-linux" target="_blank" rel="noopener noreferrer nofollow ugc">https://linuxconfig.org/how-to-make-iptables-rules-persistent-after-reboot-on-linux</a>)</em></p>
<p dir="auto">Now the iptables rules (inkl custom rules) persist after reboot, but then again...cloudron has had no reason to do changes.</p>
<p dir="auto">So I provoked it by installing another app (wordpress-app).  A few seconds after installation it said wordpress was running, but I could not access it.  A few seconds later I could.  So it seems it is working.  (Maybe I should have tried another app, with other ports)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/necrevistonnezr" aria-label="Profile: necrevistonnezr">@<bdi>necrevistonnezr</bdi></a> maybe you could also benefit from looking at iptables-persistent? <a href="https://linuxconfig.org/how-to-make-iptables-rules-persistent-after-reboot-on-linux" target="_blank" rel="noopener noreferrer nofollow ugc">https://linuxconfig.org/how-to-make-iptables-rules-persistent-after-reboot-on-linux</a></p>
]]></description><link>https://forum.cloudron.io/post/3589</link><guid isPermaLink="true">https://forum.cloudron.io/post/3589</guid><dc:creator><![CDATA[stoccafisso]]></dc:creator><pubDate>Thu, 23 May 2019 20:51:39 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Thu, 23 May 2019 20:09:46 GMT]]></title><description><![CDATA[<p dir="auto">You might have forgotten to dump the changed iptables configuration with:</p>
<pre><code>iptables-save &gt;/etc/iptables/rules.v4
</code></pre>
]]></description><link>https://forum.cloudron.io/post/3587</link><guid isPermaLink="true">https://forum.cloudron.io/post/3587</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 23 May 2019 20:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Thu, 23 May 2019 16:15:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stoccafisso" aria-label="Profile: stoccafisso">@<bdi>stoccafisso</bdi></a><br />
I run Plex on the same server as Cloudron (there's no official Plex app yet for Cloudron, although <a href="https://forum.cloudron.io/topic/1132/plex-media-server">it's planned</a>.)<br />
I set up a script via cron that opens the necessary ports every XX minutes.</p>
<pre><code>iptables -I INPUT -p tcp -m tcp --dport 32400 -j ACCEPT
iptables -I INPUT -p tcp -m tcp --dport 32469 -j ACCEPT
</code></pre>
]]></description><link>https://forum.cloudron.io/post/3584</link><guid isPermaLink="true">https://forum.cloudron.io/post/3584</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Thu, 23 May 2019 16:15:22 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Thu, 23 May 2019 15:11:01 GMT]]></title><description><![CDATA[<p dir="auto">I came to think about something like this:</p>
<ol>
<li>Run a script that monitors when cloudron is finished loading, and finished configuring iptables (after each restart/bootup)</li>
<li>Then, when cloudron is complete restarted, script insert the needed custom iptables entries, and then run iptables-persistent.</li>
</ol>
<p dir="auto">There are probably much better ways to do it, but at least I am trying to think out a possible solution.  But how to code that script and get it to do the stuff I want?  Anyone able to help?</p>
]]></description><link>https://forum.cloudron.io/post/3583</link><guid isPermaLink="true">https://forum.cloudron.io/post/3583</guid><dc:creator><![CDATA[stoccafisso]]></dc:creator><pubDate>Thu, 23 May 2019 15:11:01 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudron overrides iptables-persistent on Thu, 23 May 2019 13:52:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stoccafisso" aria-label="Profile: stoccafisso">@<bdi>stoccafisso</bdi></a> Cloudron manages iptables on it's own. I am not sure of a proper way around this other than forking the app you use for media and modifying the CloudronManifest.json file to include the ports you need.</p>
<p dir="auto">Though that's not really recommended. <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> might have some answers though!</p>
]]></description><link>https://forum.cloudron.io/post/3582</link><guid isPermaLink="true">https://forum.cloudron.io/post/3582</guid><dc:creator><![CDATA[murgero]]></dc:creator><pubDate>Thu, 23 May 2019 13:52:57 GMT</pubDate></item></channel></rss>