<?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[DNS and VPN App]]></title><description><![CDATA[<p dir="auto">Ref. <a href="https://docs.cloudron.io/packages/adguard-home/#security" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/packages/adguard-home/#security</a></p>
<p dir="auto">I'm struggling with this and like to only permit VPN clients to connect to adguard. Somehow I am messing this up.</p>
<p dir="auto">Can somebody (you?) share their examples, please.</p>
<p dir="auto"><img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f63d.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--kissing_cat" style="height:23px;width:auto;vertical-align:middle" title=":kissing_cat:" alt="😽" /></p>
<p dir="auto">My current config is port 53 is open, no blocking of anything in adguard.</p>
<p dir="auto">I can see one client connecting, which is the internal vpn server IP, and I cannot identify individual clients. I have two clients on the vpn for now.</p>
<p dir="auto">I want to be able to identify these clients and permit them. I also want to be able to use the private dns option on android although that's not strictly required since I will be on the vpn or at home or office.</p>
<p dir="auto">My concern is that since 53 is open, people may abuse the service.</p>
<p dir="auto">I have tried setting the server's IP and the two VPN subnets to the allow list but I was unable to connect to the adguard for resolving dns queries from the vpn clients.</p>
]]></description><link>https://forum.cloudron.io/topic/14453/dns-and-vpn-app</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 14:53:11 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14453.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Oct 2025 19:26:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DNS and VPN App on Fri, 24 Oct 2025 17:18:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/3246" aria-label="Profile: 3246">@<bdi>3246</bdi></a><br />
Yes, as stated in the information text in AdGuard:</p>
<blockquote>
<p dir="auto">Allowed clients</p>
<p dir="auto">A list of CIDRs, IP addresses, or ClientIDs. If this list has entries, AdGuard Home will accept requests only from these clients.</p>
</blockquote>
<p dir="auto">Emphasis on only.</p>
]]></description><link>https://forum.cloudron.io/post/114413</link><guid isPermaLink="true">https://forum.cloudron.io/post/114413</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 24 Oct 2025 17:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to DNS and VPN App on Fri, 24 Oct 2025 14:36:24 GMT]]></title><description><![CDATA[<p dir="auto">Thank you. I am using Option 1 for now, which should stop anyone from abusing the system, right? :-s</p>
]]></description><link>https://forum.cloudron.io/post/114406</link><guid isPermaLink="true">https://forum.cloudron.io/post/114406</guid><dc:creator><![CDATA[3246]]></dc:creator><pubDate>Fri, 24 Oct 2025 14:36:24 GMT</pubDate></item><item><title><![CDATA[Reply to DNS and VPN App on Fri, 24 Oct 2025 12:36:19 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/3246" aria-label="Profile: 3246">@<bdi>3246</bdi></a></p>
<h2>Option 1 - Custom DNS no <a href="https://docs.cloudron.io/packages/adguard-home/#dot" target="_blank" rel="noopener noreferrer nofollow ugc">AdGuard DoT</a></h2>
<p dir="auto">DNS requests from the VPN Client will come over the <code>CLOUDRON_PROXY_IP=172.18.0.1</code><br />
So if you whitelist <code>172.18.0.1</code> the requests should work when you use the IP address of your Cloudron Server as DNS IP.</p>
<p dir="auto">In the VPN Cloudron app you need to configure the custom DNS Server:</p>
<p dir="auto"><img src="/assets/uploads/files/1761306068897-793a8270-abe1-4e16-83b2-f01ffb347a7f-image.png" alt="793a8270-abe1-4e16-83b2-f01ffb347a7f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">In AdGuard you need to whitelist the Cloudron Proxy IP:</p>
<p dir="auto"><img src="/assets/uploads/files/1761306115377-99710423-7e2a-4b93-ab70-0fabb5938044-image-resized.png" alt="99710423-7e2a-4b93-ab70-0fabb5938044-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">After saving the options and enabling (in my case) the Wireguard Client I can see the querrys in AdGuard:<br />
<img src="/assets/uploads/files/1761306258666-f38b8123-a6c9-4df1-94ce-c390962921bb-image-resized.png" alt="f38b8123-a6c9-4df1-94ce-c390962921bb-image.png" class=" img-fluid img-markdown" /></p>
<h2>Option 2 - Configure the VPN app to forward all to the AdGuard DNS Server no <a href="https://docs.cloudron.io/packages/adguard-home/#dot" target="_blank" rel="noopener noreferrer nofollow ugc">AdGuard DoT</a></h2>
<p dir="auto">From the Cloudron doc <a href="https://docs.cloudron.io/packages/vpn/#built-in-dns-server" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/packages/vpn/#built-in-dns-server</a></p>
<p dir="auto">Adding e.g.:</p>
<pre><code>server=dns.cloudron.dev
</code></pre>
<p dir="auto">After saving the file and restarting the app, all DNS queries are forwarded to <code>dns.cloudron.dev</code> (The AdGuard App)<br />
A custom DNS Server from Option 1 is not needed in the Client config.</p>
<p dir="auto">Possible side effect:</p>
<p dir="auto">Doc:</p>
<blockquote>
<p dir="auto">This app has a built-in Dnsmasq DNS server which is pushed to clients. This DNS server allows resolution of connected clients using devicename.username.</p>
</blockquote>
<p dir="auto">This might not work when doing this.</p>
<p dir="auto">Still the Cloudron Proxy IP needs to be whitelisted. See Option 1.</p>
<hr />
<h2>Using <a href="https://docs.cloudron.io/packages/adguard-home/#dot" target="_blank" rel="noopener noreferrer nofollow ugc">AdGuard DoT</a> Clients and using them in the Whitelist</h2>
<p dir="auto"><img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/26a0.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--warning" style="height:23px;width:auto;vertical-align:middle" title=":warning:" alt="⚠" /> Currently not possible in Cloudron 9 to use <code>*.</code> in domain aliases (fix coming)!</p>
<p dir="auto">It should be:</p>
<ul>
<li>configure your AdGuard app location to have the <code>*.dns</code> alias</li>
<li>add a client in AdGuard with the name <code>vpnc1</code> (<code>vpnc1</code> is the name for the client, chose what ever you like)</li>
<li>whitelist the client <code>vpnc1</code> in AdGuard under DNS Settings</li>
<li>configure the VPN Client use the <code>vpnc1.dns.cloudron.dev</code> domain as the DNS Nameserver</li>
</ul>
<p dir="auto">But I did not get this working for a VPN Client.<br />
This worked for e.g. Android Custom DNS Server.<br />
But the VPN Client seems unable to resolve <code>*.dns.cloudron.dev</code> or <code>dns.cloudron.dev</code>.<br />
Even when configuring this as a custom domain according to <a href="https://wiki.archlinux.org/title/Dnsmasq#Adding_a_custom_domain" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.archlinux.org/title/Dnsmasq#Adding_a_custom_domain</a></p>
<pre><code>address=/dns.cloudron.dev/139.162.188.66
address=/*.dns.cloudron.dev/139.162.188.66
</code></pre>
<p dir="auto">Still not resolving.</p>
<p dir="auto">I am currently looking deeper into this.</p>
]]></description><link>https://forum.cloudron.io/post/114390</link><guid isPermaLink="true">https://forum.cloudron.io/post/114390</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 24 Oct 2025 12:36:19 GMT</pubDate></item><item><title><![CDATA[Reply to DNS and VPN App on Fri, 24 Oct 2025 11:29:25 GMT]]></title><description><![CDATA[<p dir="auto">Thanks James!</p>
]]></description><link>https://forum.cloudron.io/post/114386</link><guid isPermaLink="true">https://forum.cloudron.io/post/114386</guid><dc:creator><![CDATA[3246]]></dc:creator><pubDate>Fri, 24 Oct 2025 11:29:25 GMT</pubDate></item><item><title><![CDATA[Reply to DNS and VPN App on Fri, 24 Oct 2025 11:10:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/3246" aria-label="Profile: 3246">@<bdi>3246</bdi></a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/3246" aria-label="Profile: 3246">@<bdi>3246</bdi></a> said in <a href="/post/114356">DNS and VPN App</a>:</p>
<blockquote>
<p dir="auto">My concern is that since 53 is open, people may abuse the service.</p>
</blockquote>
<p dir="auto">This is a valid concern and open DNS server are always used for <a href="https://www.cloudflare.com/learning/ddos/dns-amplification-ddos-attack/" target="_blank" rel="noopener noreferrer nofollow ugc">DNS amplification attacks</a>.</p>
<p dir="auto">I am looking into it and will report back.</p>
]]></description><link>https://forum.cloudron.io/post/114385</link><guid isPermaLink="true">https://forum.cloudron.io/post/114385</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 24 Oct 2025 11:10:54 GMT</pubDate></item></channel></rss>