creating bridge to acl protected broker where topic has username and password protection

249 views
Skip to first unread message

Shrikant Lahase

unread,
Feb 19, 2016, 5:55:48 AM2/19/16
to MQTT
Hi

I have 2 brokers, broker1 and broker2.  broker1 has ACL protecton and in .acl file topic is proteced with username and password.  I want to create bridge from broker2 to broker1. So i am not able  create bridge successfully.  what configuration should be given in mosquitto.conf file at broker2.    i am pasting my  broker1 and broker2 mosquitto.conf file configuration ..
Broker 1===>

autosave_interval 1800
connection_messages true
log_dest stderr
log_dest topic
log_type error
log_type warning
log_type notice
log_type information
log_type all
log_type debug
log_timestamp true
password_file /home/aviconn/mosquitto-1.4.2/src/passwd.pw
acl_file /home/aviconn/mosquitto-1.4.2/src/aviconn.acl
persistence true
persistence_location /tmp/
persistence_file mosquitto.db
persistent_client_expiration 1m
retained_persistence true
port 5003
allow_anonymous false


Broker 2 ===>

retry_interval 20
user root
allow_zero_length_clientid true
port 5003
max_connections -1
autosave_interval 1800
persistence true
persistence_file acclivate_mosquitto.db
persistence_location /home/odroid/Documents/
connection_messages true
log_type all
log_dest file /tmp/Avi_mosquitto.log
log_timestamp true
allow_anonymous true
username test1
password 1234
try_private true
connection aviconn_1
address 10.0.0.16:5003
topic # both 2 /Acclivate/iOmniControl/168/ /Acclivate/iOmniControl/168/
cleansession true
keepalive_interval 10



Please anybody help what configuration should i used in order to create bridge

Roger Light

unread,
Mar 1, 2016, 12:05:59 PM3/1/16
to mq...@googlegroups.com
Hi Shrikant,

You've not really said what isn't working or what you have tried to do.

I would start by working with the most simple case you can think of -
a single broker bridging to a public broker without a username perhaps
and work up from there to more complicated cases until it breaks. That
should help you isolate your problem and will hopefully mean you can
fix it straight away yourself.

Regards,

Roger
> --
> To learn more about MQTT please visit http://mqtt.org
> ---
> You received this message because you are subscribed to the Google Groups
> "MQTT" group.
> To unsubscribe from this group and stop receiving emails from it, 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.

Shrikant Lahase

unread,
Mar 2, 2016, 4:59:47 AM3/2/16
to mq...@googlegroups.com
Actually i fixed that issue......
by just commenting following line in mosquitto.conf of broker 2
 try_private true


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/mZ5lCBv9J-c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mqtt+uns...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages