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.