Mosquitto Docker with More then one LAN [message #1848724] |
Wed, 15 December 2021 04:26 |
ARYE ARDUINO Messages: 1 Registered: December 2021 |
Junior Member |
|
|
Hi All,
I have just added to my network a new RPi that acts as an AP for a network 10.77.77.0/24 - using OpenWRT. I have setup static route in my Router that is at 192.168.1.0/24 and I am able to access my devices on net 10.77.77.0 from net 192.168.1.0 without any issues (Firewall is open on both)
Basically the 10.77.77.0 is my IoT network that I want to dedicate to all of my devices specially all my Tasmota devices.
I have added my first Tasmota ESP32 device to network 10.77.77.0 and it got an IP and I was able to connect to it from a PC on network 192.168.1.0 to configure it. The Tasmota Device is connected to my RPi IOT network 10.77.77.0 and it has an IP within that range 10.77.77.2.
I have set all the MQTT settings on the device and I was NOT able to see it in the MQTT explorer at all. I tried restarting the device several times with no luck. Still not showing in the MQTT explorer where it should have been.
I went and changed the ssid1 of the Tasmota to connect to a different network that is in the 192.168.1.0 range and the Tasmota device got a new IP and it was shown on the docker mqtt server that is also located in the 192.168.1.0 network.
So As far as I see it - my settings on the device for the MQTT are correct and I am able to connect with the broker BUT only when I am on the 192.168.1.0 network. I am not able to connect to it when I am on a different network - my IoT net 10.77.77.0 not able to access the MQTT Docker that I have in my network.
The main idea is to have All Tasmota IoT devices on a different network from my main network and since I already have other devices that I use with MQTT on my main network IT must stay where it is on the Docker Server in 192.168.1.0 LAN.
I would be happy if you could help me with this that I will be able to have the 10.77.77.0 accessible to my MQTT Docker on 192.168.1.0.
My current settings on the mqtt are basics: mosquitto.conf
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
log_dest stdout
password_file /mosquitto/config/mosquitto.passwd
allow_anonymous false
Thanks for all your help
Aryeduino
|
|
|
Powered by
FUDForum. Page generated in 0.02850 seconds