FR: Allow -wwwbind to specify 127.0.0.1 and [IP, e.g. 192.168.x.y]
Posted: Friday 20 December 2019 14:32
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:
to:
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
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"
...
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
...
Thanks for taking this into consideration.
Kind regards
Catfriend1