MQTT Connector allows you to transfer MQTT data unidirectionally across the MetaDefender Optical Diode (hereinafter Optical Diode). The MQTT Connector is configured on the Optical Diode BLUE and RED sides.
The MQTT Connector defines subscribers which collect data from a customer-owned MQTT Broker on BLUE network. This data is transferred to the MQTT publishers configured on the MQTT Connector on the Optical Diode RED. These publishers forward the MQTT data to a defined MQTT Broker on the RED network.
Optical Diode BLUE
A security dongle must be inserted in the BLUE and RED servers to change configuration.
Login into NetWall BLUE.
Go to MQTT menu deploy Action button and select Add Subscriber.
Type values in the following boxes:
Channel #: Assign a channel number. This channel number must be the same on the BLUE and RED sides.
Broker IP or Hostname: Include here the Broker IP address or the Hostname.
Broker Port: Broker's Port number. Default value is 1883 or 8883 if TLS encryption is selected.
Client ID: Include here the Client ID. The Client Identifier identifies the Client to the Server. Each Client connecting to the Server has a unique ClientID.
Keep Alive (sec): Maximum time interval that is permitted to elapse between the point at which the Client finishes transmitting one MQTT Control Packet and the point it starts sending the next. A Keep Alive value of 0 has the effect of turning off the Keep Alive mechanism. Default value is 300, valid values are 0-65535.
Receive Maximum: Maximum number of concurrent QOS1 and QOS2 publications that will be processed. Default value is 20, valid values are 1-65535.
Send Maximum: Maximum number of outgoing QOS1 and QOS2 messages that the client will attempt to have in flight at once. Default value is 20, valid values are 1-65535.
Connect Delay (sec): Elapsed time between connection attempts. Default value is 5
Reconnect: This checkbox controls the behavior of the MQTT client when it is unexpectedly disconnected. The default behavior is to attempt reconnection every second until the connection is successful. Marking the checkbox allows the user to change this parameters.
Reconnect Delay (sec): Delay between successive reconnection attempts. Default value is 2, valid values are 1-60.
Reconnect Delay Max: Set an upper bound to the delay. Default value is 2, valid values are 1-60. A value greater than Reconnect Delay is recommended.
Authentication/Encryption: Select authentication/encryption to apply, once the preferred option is selected extra fields will be displayed to include further information for the authentication/encryption as credentials and certificates. Default option is None, other options are:
- User/Password.
- Server Authentication.
- Mutual Authentication.
- TLS-PSK.
- User/Password + Server Auth.
- User/Password + Mutual Auth.
- User/Password + TLS-PSK.
Topic Filter: An expression contained in a Subscription to indicate an interest in one or more topics. Maximum length is 1000 characters.
Quality of Service: Define the Quality of Service (QoS) level:
- Level 0: At most once delivery. Messages are delivered according to the best efforts of the operating environment. The message arrives at the receiver either once or not at all.
- Level 1: At least once delivery. It ensures that the message arrives at the receiver at least once.
- Level 2: Exactly once delivery. This is the highest Quality of Service level, for use when neither loss nor duplication of messages are acceptable
Enabled: This checkbox should be marked to enable MQTT connector.
Click on Submit button to save the changes.

NetWall RED
A security dongle must be inserted in the BLUE and RED servers to change configuration.
Login into NetWall RED.
Go to MQTT menu deploy Action button and select Add Publisher.
Type values in the following boxes:
Channel #: Assign a channel number. The channel number must be the same on BLUE and RED sides.
Broker IP or Hostname: Include here the Broker IP address or the Hostname.
Broker Port: Broker's Port number. Default value is 1883 or 8883 if TLS encryption is selected.
Client ID: Include here the Client ID. The Client Identifier identifies the Client to the Server. Each Client connecting to the Server has a unique ClientID.
Keep Alive (sec): Maximum time interval that is permitted to elapse between the point at which the Client finishes transmitting one MQTT Control Packet and the point it starts sending the next. A Keep Alive value of 0 has the effect of turning off the Keep Alive mechanism. Default value is 300, valid values are 0-65535.
Clean Session: Specify whether the connection starts a new Session (box checked) or is a continuation of an existing session (box unchecked).
Topic Name: if this field is blank, topic names from BLUE side will be used. If a topic name is included here, this will override the topic in BLUE.
Receive Maximum: Maximum number of concurrent QOS1 and QOS2 publications that will be processed. Default value is 20, valid values are 1-65535.
Send Maximum: Maximum number of outgoing QOS1 and QOS2 messages that the client will attempt to have in flight at once. Default value is 20, valid values are 1-65535.
Connect Delay (sec): Elapsed time between connection attempts. Default value is 5
Reconnect: This checkbox controls the behavior of the MQTT client when it is unexpectedly disconnected. The default behavior is to attempt reconnection every second until the connection is successful. Marking the checkbox allows the user to change this parameters.
Reconnect Delay (sec): Delay between successive reconnection attempts. Default value is 2, valid values are 1-60.
Reconnect Delay Max: Set an upper bound to the delay. Default value is 2, valid values are 1-60. A value greater than Reconnect Delay is recommended.
Authentication/Encryption: Select authentication/encryption to apply, once the preferred option is selected extra fields will be displayed to include further information for the authentication/encryption as credentials and certificates. Default option is None, other options are:
- User/Password.
- Server Authentication.
- Mutual Authentication.
- TLS-PSK.
- User/Password + Server Auth.
- User/Password + Mutual Auth.
- User/Password + TLS-PSK.
Quality of Service: Define the Quality of Service (QoS) level:
- Level 0: At most once delivery. Messages are delivered according to the best efforts of the operating environment. The message arrives at the receiver either once or not at all.
- Level 1: At least once delivery. It ensures that the message arrives at the receiver at least once.
- Level 2: Exactly once delivery. This is the highest Quality of Service level, for use when neither loss nor duplication of messages are acceptable
Enabled: This checkbox should be marked to enable MQTT connector.
Click on Submit button to save the changes.

