Skip to content

nzfarmer1/mqtt-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqtt-proxy

This project aims to solve the problem of matching individual clients to specific brokers via a single public facing host/port combination.

Usage:

node mqtt-proxy <[host:]port> <map>

i.e.

node mqtt-proxy localhost:1883 map.json

Map format:

Edit map.json to create an array of maps. Example file below:

[{"username": "*",  "clientId": "*", "host": "localhost", "port": "1883"}]

Matching:

  1. A simple RegEx is performed between the client supplied parameters and those in the map.
  2. The corresponding host and port are used with existing connection parameters proxied.

This is a relatively green project with debugging enabled; without a set of test scripts; and with no support yet for ssl/tls certificates

Please feel free to fork and improve.

Andrew McClure, Director AgSense - Bringing I.o.T to NZ Agriculture

Koha (Donation) - If you like our work and would like to make a small donation to help us continue

About

Dynamic MQTT proxy (node.js) - map against clientId and username

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published