no devices when using remote connection

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Tonyhi8
Posts: 2
Joined: Saturday 04 February 2023 12:06
Target OS: Linux
Domoticz version:
Contact:

no devices when using remote connection

Post by Tonyhi8 »

Hello All,

I've been using domoticz for a while now. I usually find my solution of the forum. but this time I'm stuck.

Consider an external VPS where subdomains are pointing to the ip adress of the VPS.
Consider a powerful proxmox server that instanciate several VM's: pf sense, domoticz(of course) as a debian vm and an ssh gateway (debian instance).
the ssh gateway makes the mapping between the subdomains pointing to the local applications behind a firewall and all on the same subnet.
The public ssh key (of the ssh gateway) was sucessfully copied to the vps and the following command:

Code: Select all

sudo autossh -f -N -M 0 domoticz[dot]mydom[dot]com -l root -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -o ServerAliveCountMax=15 -o ServerAliveInterval=100 -o ExitOnForwardFailure=yes -R 8888:192[dot]168[dot]1[dot]D:8080 "sleep 9000h"
is kind of working because I can access the domoticz log from domoticz[dot]mydom[dot]com, however now devices are showing up.

I didn't have this problem on a 2018 domoticz version running on raspberry pi.

I'd happy if you can help me out on this.

Best regards,

/Tony
Attachments
temperature devices viewed from remote domain
temperature devices viewed from remote domain
remote_domoticz.JPG (46.47 KiB) Viewed 252 times
temperature devices viewed from local IP adress
temperature devices viewed from local IP adress
local_domoticz.JPG (80.86 KiB) Viewed 252 times
Capture.JPG
Capture.JPG (57.13 KiB) Viewed 252 times
Tonyhi8
Posts: 2
Joined: Saturday 04 February 2023 12:06
Target OS: Linux
Domoticz version:
Contact:

Re: no devices when using remote connection

Post by Tonyhi8 »

it is not cleat what was wrong, I just reset my dns names then installed the let'sencrypt ssl certificate following official guidelines.

what finally works is this url:

Code: Select all

https://domoticz[dot]mydom[dot]com:8443
using the following command:

Code: Select all

sudo autossh -f -N -M 0 domoticz[dot]mydom[dot]com -l root -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -o ServerAliveCountMax=15 -o ServerAliveInterval=100 -o ExitOnForwardFailure=yes -R 8443:192[dot]168[dot]1[dot]D:443 "sleep 9000h"
I think this is interesting alternatives to duckdns or other dyndns method, I leave it here if it can helps others.

Please let me know your comments and thoughts.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest