[2026.3] Source IP not longer captured while using a reverse proxy

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Filip
Posts: 135
Joined: Thursday 03 November 2016 10:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

[2026.3] Source IP not longer captured while using a reverse proxy

Post by Filip »

I still have a problem with the change in behavior when using a reverse proxy (before the update to 2026.3 all worked well). My trusted networks are set to 192.168.1.*. Synogogy server (proxy) and domoticz RPI are running in the local network.

I have the reverse proxy configuration as defined in https://wiki.domoticz.com/WebServer_Proxy#Synology_NAS.

Before the upgrade, all traffic coming through the reverse proxy was recognised as "untrusted" (as it should be - asking for a login). After the upgrade, all traffic through the proxy is recoginised as "trusted" (so no login anymore).

A test I did: when I put my mobile in 5G only (so no local network - I checked the IP of my mobile and it has 100.x.x.x) and I connect through the proxy, I see in the log Status: [web:443] Incoming connection from: 192.168.1.67, 192.168.1.67 the local IP of my synology... This means that te external IP addres of my mobile (100.x.x.x) is not read by domoticz.

Am I doing something fundamentally wrong? Of has something changed in reading the custom headers information?
Following the settings defined in https://wiki.domoticz.com/WebServer_Proxy#Synology_NAS, the source address should be transferred in the custom headers... Unfortunately I don't know the order in which domoticz takes the custom headers to define the IP address used...
ReiKurosawa
Posts: 3
Joined: Saturday 17 October 2026 9:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [2026.3] Source IP not longer captured while using a reverse proxy

Post by ReiKurosawa »

This looks like a known 2026.3 regression rather than your Synology config: in that release Domoticz ignored the forwarded client header, so every request through your proxy appeared to come from the proxy's LAN address - and 192.168.1.67 sits inside your trusted networks, hence no login prompt. It was fixed right after (Domoticz GitHub PR 6937), and the current stable 2026.4 (released October 1) also makes the header selectable: under Settings > Security you can now choose which reverse proxy header the client address is read from (None, X-Forwarded-For, X-Real-IP or Forwarded), per the 2026.4 History.txt entry. So the fix is: update to 2026.4 and set that option to X-Forwarded-For, matching the custom header your Synology sends. After that, external connections through the proxy should show their real IP again and be treated as untrusted.
Post Reply