Hi all,
as bullseye now uses mosquitto version 2.0.x, (compared to latest: 1.5.7 in buster), according to official docu and own experience, now authentification is needed:
In version 1.6.x and earlier, the listener defined by
-p
(or the default port of 1883) would be bound to all interfaces and so be accessible from any network. It could also be used in combination with-c
.From version 2.0 onwards, the listeners defined with
-p
are bound to the loopback interface only, and so can only be connected to from the local machine. If both-p
is used and a listener is defined in a configuration file, then the-p
options are IGNORED.
Using mostly rhasspy-mobile-app this caused some irritations after upgrading to bullseye (I use a .deb installation). For the moment, I got around that using an external MQTT server, but for the future, I’d ask for support for either authentification or “anonymous access” on the internal server.
Wrt. to bullseye, see also remark on update to the libgfortran version here
EDIT: Seems for future anonymous login an additional option has to be set as mentionned in https://mosquitto.org/documentation/authentication-methods/:
allow_anonymous true
Unfortunately, I don’t have no clue how to hand that over. Seems not to be a commandline thing but has to be inserted in the (mosquitto) configuration file, so a simple extension as https://github.com/rhasspy/rhasspy-supervisor/commit/c6e6b90bcde6df254c94d0ad9d3d836caae71f2d most likely will not do the trick…
Kind regards