FR: Allow -wwwbind to specify 127.0.0.1 and [IP, e.g. 192.168.x.y] Topic is solved

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
Guest7493264

FR: Allow -wwwbind to specify 127.0.0.1 and [IP, e.g. 192.168.x.y]

Post by Guest7493264 »

Ref.: https://github.com/domoticz/domoticz/issues/3805

Hi,

I'd like to suggest -wwwbind to support multiple interface IP's being specified to LISTEN on.
I was told in the GitHub ticket, dzVents requires "hard-coded" connection to 127.0.0.1:80 and ran into a problem when I had to specify "-wwwbind 192.168.5.20" on a machine that has multiple network interfaces.

Currently worked around dzVents not working by changing /etc/init.d/domoticz.sh ...

from:

Code: Select all

...
DAEMON_ARGS="$DAEMON_ARGS -wwwbind 192.168.5.20"
...
to:

Code: Select all

...
DAEMON_ARGS="$DAEMON_ARGS -wwwbind 127.0.0.1"
iptables -t nat -I PREROUTING -p tcp -i eth0 -d 192.168.5.20 --dport 80 -j DNAT --to-destination 127.0.0.1:80
sysctl -w net.ipv4.conf.eth0.route_localnet=1
...
That allows me to use dzVents on 127.0.0.1:80 loopback and still being able to access my domoticz Web UI from the trusted network interface 192.168.5.0/24.

Thanks for taking this into consideration.

Kind regards
Catfriend1
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest