This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Eclipse Mosquitto (MQTT LXC) cannot be ascessed from network #1671
Replies: 3 comments 7 replies
-
When connecting to a MQTT broker, credentials are required. |
Beta Was this translation helpful? Give feedback.
5 replies
-
This became even more strange. I cannot connect to mqtt from my desktop PC, nor from HomeAssistant that is in separate VM but on the same Proxmox as mqtt. But, I tried from another PC in same network and it connects and logs in mqtt flawlessly. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hm, I restarted everything in network and that resolved an issue. Mqtt became accessible as expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I installed Mosquitto using script, and set it up as instructed. It is not accessible from network. It is like port is closed or blocked.
When I try to connect using telnet to external IP and port 1883 from within console on Mosquito LXC - that works. Telnet connects. So it means Mosquitto is up and running and it listens on external IP.
Before this, I installed few other LXC using scripts (nginx and pihole) and they work fine. I checked all I could in Proxmox and all configuration is the same for all three LXCs. Firewall is off so I guess it is not Proxmox that blocks access to port.
/etc/mosquitto/conf.d/default.conf:
`allow_anonymous false
persistence true
password_file /etc/mosquitto/passwd
listener 1883`
I tried setting up IP for listener, but it did not make any change.
LXC config:
`## MQTT LXC
arch: amd64
cores: 1
features: keyctl=1,nesting=1
hostname: mqtt
memory: 512
net0: name=eth0,bridge=vmbr0,hwaddr=AA:B3:58:FB:BC:B3,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-105-disk-0,size=2G
swap: 512
tags: proxmox-helper-scripts
unprivileged: 1`
Proxmox is version 8.0.3
Any suggestion what should I check for?
Beta Was this translation helpful? Give feedback.
All reactions