<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="text">Blog entries tagged self-hosting :: mwop.net</title>
  <updated>2026-07-07T10:12:23-05:00</updated>
  <generator uri="https://getlaminas.org" version="2">Laminas_Feed_Writer</generator>
  <link rel="alternate" type="text/html" href="https://mwop.net/blog/tag/self-hosting"/>
  <link rel="self" type="application/atom+xml" href="https://mwop.net/blog/tag/self-hosting/atom.xml"/>
  <id>https://mwop.net/blog/tag/self-hosting</id>
  <entry xmlns:xhtml="http://www.w3.org/1999/xhtml">
    <title type="html"><![CDATA[Nextcloud SSRF rules and internal address ranges]]></title>
    <published>2026-07-07T10:12:23-05:00</published>
    <updated>2026-07-07T10:12:23-05:00</updated>
    <link rel="alternate" type="text/html" href="https://mwop.net/blog/2026-07-07-nextcloud-ssrf-and-internal-address-ranges.html"/>
    <id>https://mwop.net/blog/2026-07-07-nextcloud-ssrf-and-internal-address-ranges.html</id>
    <author>
      <name>Matthew Weier O'Phinney</name>
      <email>contact@mwop.net</email>
      <uri>https://mwop.net</uri>
    </author>
    <content xmlns:xhtml="http://www.w3.org/1999/xhtml" type="xhtml">
      <xhtml:div xmlns:xhtml="http://www.w3.org/1999/xhtml"><xhtml:p>I use <xhtml:a href="https://nextcloud.com">Nextcloud</xhtml:a>, and have
used the <xhtml:a href="https://apps.nextcloud.com/apps/news">Nextcloud
News</xhtml:a> app as my feed reader for a number of years.</xhtml:p>
<xhtml:p>Since moving all my hosting to a home lab, I noticed that
Nextcloud News was unable to retrieve feeds from my own website,
which was weird. Looking at the logs, I saw notes about "host
violates local access rules".</xhtml:p>
<xhtml:p>This was a DNS issue (it's always DNS), right? Well, kind
of.</xhtml:p>
<xhtml:p>In order to help prevent <xhtml:a href="https://owasp.org/www-community/attacks/Server_Side_Request_Forgery">
SSRF attacks</xhtml:a>, Nextcloud, by default, has protections against
domains that resolve to internal IP address ranges. When I moved my
sites to my homelab, I also setup DNS such that when on the local
network, the services resolve to the local address range instead of
the public external IP. This was the root of the problem.</xhtml:p>
<xhtml:p>Fortunately, there's a configuration setting for that:</xhtml:p>
<xhtml:pre><xhtml:code class="language-php hljs php" data-lang="php"><xhtml:span class="hljs-comment">// in the Nextcloud config.php:</xhtml:span>
[ <xhtml:span class="hljs-string">'allow_local_remote_servers'</xhtml:span> =&gt; <xhtml:span class="hljs-keyword">true</xhtml:span> ]
</xhtml:code></xhtml:pre>
<xhtml:p>After making that change and restarting Nextcloud, I was able to
get it to resolve and access my feeds.</xhtml:p>
<xhtml:div class="h-entry"><xhtml:img class="u-photo photo" width="50" src="https://avatars0.githubusercontent.com/u/25943?v=3&amp;u=79dd2ea1d4d8855944715d09ee4c86215027fa80&amp;s=140" alt="matthew"/> <xhtml:a class="u-url u-uid p-name" href="https://mwop.net/blog/2026-07-07-nextcloud-ssrf-and-internal-address-ranges.html">
Nextcloud SSRF rules and internal address ranges</xhtml:a> was originally
published <xhtml:time class="dt-published" datetime="2026-07-07T10:12:23-05:00">7 July 2026</xhtml:time> on <xhtml:a href="https://mwop.net">https://mwop.net</xhtml:a> by <xhtml:a rel="author" class="p-author" href="https://mwop.net">Matthew Weier
O'Phinney</xhtml:a>.</xhtml:div>
</xhtml:div>
    </content>
  </entry>
</feed>
