brocaar / chirpstack-packet-multiplexer

Forward Semtech packet-forwarder data to multiple servers.
https://www.chirpstack.io
MIT License
70 stars 41 forks source link

Allow all gateways for certain backends #15

Open remydejongjr opened 5 months ago

remydejongjr commented 5 months ago

Is there easy way to allow all gateways to passthrough to certain hosts/backends ?

brocaar commented 5 months ago

At this moment, there is not. If I remember correctly, it starts the UDP sockets on start of the multiplexer service thus in the current architecture it needs to know the Gateway IDs from the start.

remydejongjr commented 5 months ago

Hi @brocaar, Thank you for your quick response sorry to hear that its currently not possible any idea if this will be implemented in the future ?

brocaar commented 5 months ago

I think this requirement would change the architecture of this tool / require a rewrite. E.g. rather than creating the multiplexed gateway socket on start, it would require to create the socket once data from the gateway is received as the Gateway IDs are only known once the actual gateway sends data to the multiplexer. Probably it should also cleanup the sockets of inactive gateways.

Rewriting this tool to match this requirement is not a mega project (it is quite a simple tool), but this is not something that I have on my backlog right now.