What URI (without the HAProxy IP, of course) are you using in your MQTT
client? It's OK/expected that the underlying protocol be TCP at the network
level, but the client needs to be specifying mqtt:// in the URI to tell the
client library to use MQTT over TCP instead of OpenWire over TCP. It also
needs to be connecting to the MQTT port (1883, according to your last
message).

Tim

On Tue, Apr 21, 2020, 3:58 AM JJ <gerardo.tro...@euronet.aero> wrote:

> I forgot to write that Activemq is behind HAProxy as pfsense plugin.
> The client MQTT connects to the the public pfsense WAN->nat to VIP -> VIP
> is
> HAProxy frontend -> backend with one server.
>
> HAproxy frontend is set as tcp. ActiveMQ listen on:
>       <transportConnector name="openwire"
> uri="tcp://
> 0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600
> "
> />
>       <transportConnector name="amqp"
> uri="amqp://
> 0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600
> "
> />
>       <transportConnector name="stomp"
> uri="stomp://
> 0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600
> "
> />
>       <transportConnector name="mqtt"
> uri="mqtt://
> 0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600
> "
> />
>       <transportConnector name="ws"
> uri="ws://
> 0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600
> "
> />
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>

Reply via email to