password_file /etc/mosquitto/mosquitto_passwd
listener 1883 127.0.0.1
allow_anonymous true
listener 8883 xxx.xxx.xxx.xx
allow_anonymous false
However it does not seem possible to specify the allow_anonymous directive on a listener by listener basis.
I'm surprised I can't can't find this configuration documented anywhere - I'd have thought it would be a fairly common requirement.
Cheers,
Steve
Hi Steve,
No, I didn't find a solution. Please let me know if this solution works for you.
- sent from my mobile device
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to a topic in the Google Groups "MQTT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mqtt/bDdSmQgNe74/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
Glyn,I did find a solution, but it isn't really that pretty or elegant.I've ended up running two mosquitto daemons.One for unauthenticated traffic bound to 127.0.0.1 on 1883 and another for authenticated traffic on my external IP address bound to 8883.Regards,Steve
per_listener_settings true
listener 1883 localhost
allow_anonymous true
listener 8883
allow_anonymous false