mosquitto forward from private network to public server

0

I have a mosquitto instance at home (private network). I'd like to forward all messages from this instance to a server (public internet). Is it even possible? I tried to search mosquitto forwarding but from results I feel I'm searching a wrong term.

Details:

  • The home instance is Turris Omnia router collecting IoT messages from Hardwario sensors.
  • The router doesn't have extra memory drive and I don't want to wear off internal flash by persisting mqtt messages.
  • The server is VPS, so can spin up pretty much anything there.
  • I don't want to expose mqtt on the router to the internet. I'd prefer mosquitto itself to just send all the messages directly to the server.

What do I have to do on the server to securely accept mqtt messages?

Is it possible to configure mosquitto on the router to send all the messages to the server, or do I need some app as "forwarder"?

kub1x

Posted 2020-01-20T11:44:20.427

Reputation: 123

No answers