# MQTT Proxy Configuration

The `mqtt-proxy` plugin validates MQTT connections and proxies them to MQTT brokers, with client-ID-aware consistent-hash load balancing.<!-- --> <!-- -->Configuration covers plugin parameters.

## Parameters[​](#parameters "Direct link to Parameters")

See plugin [common configurations](https://docs.api7.ai/apisix/reference/plugin-common-configurations.md) for configuration options available to all plugins.

* protocol\_name

  string

  default: `MQTT`

  ***

  Protocol name expected in the MQTT `CONNECT` packet. Use `MQIsdp` for MQTT 3.1 and `MQTT` for MQTT 3.1.1 or 5.0.

  The optional field and `MQTT` default were introduced in API7 Enterprise 3.9.16 and 3.10.3. In earlier API7 Enterprise patches, this field is required and has no default.

* protocol\_level

  integer

  required

  ***

  Protocol level expected in the MQTT `CONNECT` packet. Set to `3` for MQTT 3.1, `4` for MQTT 3.1.1, or `5` for MQTT 5.0. A connection using another level is rejected.
