<?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[IP loggings&#x2F;views in Moodle are local docker IP&#x27;s]]></title><description><![CDATA[<p dir="auto">Is it possible to show everywhere where it's currently shown in Moodle the real IP of a user?</p>
<p dir="auto">That way it is also possible to ban IP's if they are misusing the platform.</p>
]]></description><link>https://forum.cloudron.io/topic/4340/ip-loggings-views-in-moodle-are-local-docker-ip-s</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 00:03:48 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/4340.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Feb 2021 12:25:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IP loggings&#x2F;views in Moodle are local docker IP&#x27;s on Wed, 03 Feb 2021 14:30:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/imc67" aria-label="Profile: imc67">@<bdi>imc67</bdi></a> I've published a new package which sets the <code>getremoteaddrconf</code> now correctly.<br />
Since we only have one reverse proxy, the second setting was not needed in my tests. So this is untouched by default.</p>
]]></description><link>https://forum.cloudron.io/post/24779</link><guid isPermaLink="true">https://forum.cloudron.io/post/24779</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 03 Feb 2021 14:30:47 GMT</pubDate></item><item><title><![CDATA[Reply to IP loggings&#x2F;views in Moodle are local docker IP&#x27;s on Wed, 03 Feb 2021 10:21:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/subven" aria-label="Profile: subven">@<bdi>subven</bdi></a> this is THE SOLUTION!!!</p>
<p dir="auto">Thank you very much!!!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> it would be wise to add it default to the app or to the docs I guess?</p>
]]></description><link>https://forum.cloudron.io/post/24758</link><guid isPermaLink="true">https://forum.cloudron.io/post/24758</guid><dc:creator><![CDATA[imc67]]></dc:creator><pubDate>Wed, 03 Feb 2021 10:21:51 GMT</pubDate></item><item><title><![CDATA[Reply to IP loggings&#x2F;views in Moodle are local docker IP&#x27;s on Wed, 03 Feb 2021 00:51:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdaviescoates" aria-label="Profile: jdaviescoates">@<bdi>jdaviescoates</bdi></a> it was the <code>HTTP_X_FORWARDED_FOR</code> thing, not the apache port ^^</p>
<p dir="auto">Take a look at: <a href="https://moodle.org/mod/forum/discuss.php?d=385061#p1552240" target="_blank" rel="noopener noreferrer nofollow ugc">https://moodle.org/mod/forum/discuss.php?d=385061#p1552240</a></p>
<blockquote>
<p dir="auto">Beside the suggestion/question from Howard, what is setting for:<br />
﻿Site Admin -&gt; Server -&gt; http<br />
which says:<br />
Logged IP address source<br />
getremoteaddrconf<br />
Default: HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR, REMOTE_ADDR</p>
<p dir="auto">If your server is behind a reverse proxy, you can use this setting to specify which HTTP headers can be trusted to &gt;contain the remote IP address. The headers are read in order, using the first one that is available.</p>
<p dir="auto">'spirit of sharing', Ken</p>
</blockquote>
<p dir="auto"><code>HTTP_X_FORWARDED_FOR</code> should work if the the Docker gateway IP is added as trusted/ignored proxy for Moodle. I only found <a href="https://github.com/moodle/moodle/blob/v3.10.1/config-dist.php#L356" target="_blank" rel="noopener noreferrer nofollow ugc">reverseproxy = true</a> as an configuration option which (AFAIK) does not help. However you should be able to adjust the settings in the UI instead <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="🙂" /></p>
<p dir="auto">Go to Site Admin -&gt; Server -&gt; http and do as follow:</p>
<p dir="auto"><img src="/assets/uploads/files/1612312838968-2021-02-03-01_38_27-window-resized.png" alt="2021-02-03 01_38_27-Window.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Since <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> should already know whats up, maybe he can help to make this change permanent for all instances.</p>
<p dir="auto">EDIT PS: I DID NOT TEST THIS I'M JUST GUESSING <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f613.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--sweat" style="height:23px;width:auto;vertical-align:middle" title=":sweat:" alt="😓" /> <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f4a6.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--sweat_drops" style="height:23px;width:auto;vertical-align:middle" title=":sweat_drops:" alt="💦" /> PLEASE CONFIRM WORKING FIRST</p>
<p dir="auto">EDIT2: Confirmed working <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f630.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--cold_sweat" style="height:23px;width:auto;vertical-align:middle" title=":cold_sweat:" alt="😰" /></p>
<pre><code>3 February 2021, 12:44 AM	Admin User	-	System	System	Config log created	The user with id '2' changed the config setting 'reverseproxyignore' for component 'core' from '' to '172.18.0.1'.	web	176.XX.XXX.XXX (my IP)
</code></pre>
]]></description><link>https://forum.cloudron.io/post/24735</link><guid isPermaLink="true">https://forum.cloudron.io/post/24735</guid><dc:creator><![CDATA[subven]]></dc:creator><pubDate>Wed, 03 Feb 2021 00:51:39 GMT</pubDate></item><item><title><![CDATA[Reply to IP loggings&#x2F;views in Moodle are local docker IP&#x27;s on Tue, 02 Feb 2021 23:00:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdaviescoates" aria-label="Profile: jdaviescoates">@<bdi>jdaviescoates</bdi></a> no, that is most likely the change from the release before <a href="https://forum.cloudron.io/topic/4299/jirafeau-package-updates/5?_=1612305182571">https://forum.cloudron.io/topic/4299/jirafeau-package-updates/5?_=1612305182571</a></p>
]]></description><link>https://forum.cloudron.io/post/24732</link><guid isPermaLink="true">https://forum.cloudron.io/post/24732</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Tue, 02 Feb 2021 23:00:52 GMT</pubDate></item><item><title><![CDATA[Reply to IP loggings&#x2F;views in Moodle are local docker IP&#x27;s on Tue, 02 Feb 2021 16:23:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/imc67" aria-label="Profile: imc67">@<bdi>imc67</bdi></a> I'm not sure but <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> made a change to Jirafeau so that it logs the real IP of uploaders instead of the Docker IP so I'd guess Moodle just needs the same change.</p>
<p dir="auto">I think <a href="https://forum.cloudron.io/post/24479">this</a> was the change:</p>
<ul>
<li>Run apache on port 8000</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/24710</link><guid isPermaLink="true">https://forum.cloudron.io/post/24710</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Tue, 02 Feb 2021 16:23:34 GMT</pubDate></item></channel></rss>