Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Can't publish to mqtt broker hosted in different subnet
Can't publish to mqtt broker hosted in different subnet [message #1844079] Tue, 31 August 2021 13:06
Chote Piya is currently offline Chote PiyaFriend
Messages: 1
Registered: August 2021
Junior Member
Platform:

- router: PfSense (ip address 192.168.2.1)

- mqtt broker (latest version): server 192.168.2.14 (part of local network switch plugged to pfSense ethernet port 1)

- mqtt client v.2.0.11-1: on an OpenWrt access point connected to pfSense ethernet port 2. AP network IP: 192.168.8.254. AP can get dhcp/dns from pfSense for its wireless/wired clients.

Symptom:

- mosquitto_pub from devices in subnet 192.168.2.0/24 can reach mqtt=broker without problem

- mosquitto_pub from AP (192.168.8.254) itself can reach broker.hivemq.com without problem

- mosquitto_pub from AP (192.168.8.254) itself can't reach mqtt-broker running on 192.168.2.14: ...time out.
mosquitto_pub -h 192.168.2.14 -t openwrt/dir2660/test -m "48"


mosquitto config:
persistence false
allow_anonymous true
#password_file /etc/mosquitto/passwd

# mqtt
listener 1883


I'm not sure what else I have to do to make it work. Thank you in advance for any suggestions.
Previous Topic:Nodejs Cluster with MQTT client
Next Topic:mosquitto mqtt over websockets
Goto Forum:
  


Current Time: Fri May 03 03:12:24 GMT 2024

Powered by FUDForum. Page generated in 0.02648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top