mqttmosquitto

Mosquitto - disable subscription with wildcards


I'd like to disable subscritpion to all topics using wildcards (+ and #), is it that possible?


Solution

  • Yes, on a per user basis. You can use the ACL to limit what topics a given user can subscribe to and these can include wildcards. Details of the ACL format can be found in the mosquitto.conf man page here

    You can also prevent anonymous users being able to connect to the broker at all.

    allow_anonymous false