<?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[Restrict Dashboard Access - Cloudron  v6.1.2]]></title><description><![CDATA[<p dir="auto">Dears,</p>
<p dir="auto">How can I restrict who can reach and access my dashboard?</p>
<p dir="auto">The use case:</p>
<p dir="auto">I need to restrict access to the dashboard to only two static IPs and few users.<br />
any other IPs can't reach the dashboard webpage.</p>
]]></description><link>https://forum.cloudron.io/topic/4664/restrict-dashboard-access-cloudron-v6-1-2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 01:31:24 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/4664.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Mar 2021 13:22:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Restrict Dashboard Access - Cloudron  v6.1.2 on Sat, 24 Dec 2022 07:24:06 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> said in <a href="/post/58644">Restrict Dashboard Access - Cloudron v6.1.2</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/potemkin_ai" aria-label="Profile: potemkin_ai">@<bdi>potemkin_ai</bdi></a> UFW and Docker are not compatible. I haven't looked into the repo you linked yet.</p>
</blockquote>
<p dir="auto">I didn't test the solution yet, found it with people referring as a working one, so I have hopes.</p>
<p dir="auto">The idea is to modify <code>/etc/ufw/after.rules</code> to contain:</p>
<pre><code># BEGIN UFW AND DOCKER
*filter
:ufw-user-forward - [0:0]
:ufw-docker-logging-deny - [0:0]
:DOCKER-USER - [0:0]
-A DOCKER-USER -j ufw-user-forward

-A DOCKER-USER -j RETURN -s 10.0.0.0/8
-A DOCKER-USER -j RETURN -s 172.16.0.0/12
-A DOCKER-USER -j RETURN -s 192.168.0.0/16

-A DOCKER-USER -p udp -m udp --sport 53 --dport 1024:65535 -j RETURN

-A DOCKER-USER -j ufw-docker-logging-deny -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -d 192.168.0.0/16
-A DOCKER-USER -j ufw-docker-logging-deny -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -d 10.0.0.0/8
-A DOCKER-USER -j ufw-docker-logging-deny -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -d 172.16.0.0/12
-A DOCKER-USER -j ufw-docker-logging-deny -p udp -m udp --dport 0:32767 -d 192.168.0.0/16
-A DOCKER-USER -j ufw-docker-logging-deny -p udp -m udp --dport 0:32767 -d 10.0.0.0/8
-A DOCKER-USER -j ufw-docker-logging-deny -p udp -m udp --dport 0:32767 -d 172.16.0.0/12

-A DOCKER-USER -j RETURN

-A ufw-docker-logging-deny -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix "[UFW DOCKER BLOCK] "
-A ufw-docker-logging-deny -j DROP

COMMIT
# END UFW AND DOCKER
</code></pre>
<blockquote>
<p dir="auto">Why not just enable 2FA on the dashboard?</p>
</blockquote>
<p dir="auto">It's a different security layer. 2FA relies on the code, which is much more complicated, as opposed to network level filtering.</p>
<p dir="auto">What is more complicated could have more issues.</p>
<p dir="auto">So, whenever possible, I close any code from outside access - everything have bugs, some of them are in security space, even if you are OpenBSD <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=223f9defb2f" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Do you believe this could become part of the system?</p>
<p dir="auto">I would really like to <code>deny from all</code> with <code>allow from xxx.xxx.xxx.xxx</code> with periodic firewall disable for let's encrypt.</p>
]]></description><link>https://forum.cloudron.io/post/58667</link><guid isPermaLink="true">https://forum.cloudron.io/post/58667</guid><dc:creator><![CDATA[potemkin_ai]]></dc:creator><pubDate>Sat, 24 Dec 2022 07:24:06 GMT</pubDate></item><item><title><![CDATA[Reply to Restrict Dashboard Access - Cloudron  v6.1.2 on Fri, 23 Dec 2022 16:26:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/potemkin_ai" aria-label="Profile: potemkin_ai">@<bdi>potemkin_ai</bdi></a> UFW and Docker are not compatible. I haven't looked into the repo you linked yet.</p>
<p dir="auto">Why not just enable 2FA on the dashboard?</p>
]]></description><link>https://forum.cloudron.io/post/58644</link><guid isPermaLink="true">https://forum.cloudron.io/post/58644</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 23 Dec 2022 16:26:50 GMT</pubDate></item><item><title><![CDATA[Reply to Restrict Dashboard Access - Cloudron  v6.1.2 on Fri, 23 Dec 2022 06:28:05 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> thank you! Is there any recommendations on how to do it from the command line? For those, who are not so happy about cloud provider?</p>
<p dir="auto">May I use ufw with <a href="https://github.com/chaifeng/ufw-docker" target="_blank" rel="noopener noreferrer nofollow ugc">Docker addition</a>?</p>
<p dir="auto">By the way, blocking dashboard will also block updating SSL certificates, unless CloudRon can switch to DNS validation with appropriate certbot modules?</p>
]]></description><link>https://forum.cloudron.io/post/58617</link><guid isPermaLink="true">https://forum.cloudron.io/post/58617</guid><dc:creator><![CDATA[potemkin_ai]]></dc:creator><pubDate>Fri, 23 Dec 2022 06:28:05 GMT</pubDate></item><item><title><![CDATA[Reply to Restrict Dashboard Access - Cloudron  v6.1.2 on Sat, 13 Mar 2021 19:38:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anwarnajjar" aria-label="Profile: anwarnajjar">@<bdi>anwarnajjar</bdi></a> You can set this as a rule in your Cloud firewall. Cloudron itself doesn't have built-in support for this yet. For example, in DO, you can use their firewall - <a href="https://www.digitalocean.com/docs/networking/firewalls/how-to/configure-rules/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.digitalocean.com/docs/networking/firewalls/how-to/configure-rules/</a></p>
]]></description><link>https://forum.cloudron.io/post/27735</link><guid isPermaLink="true">https://forum.cloudron.io/post/27735</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 13 Mar 2021 19:38:54 GMT</pubDate></item></channel></rss>