Hello. I'm installing NetMaker server, and I noticed that the mosquito config [1] has two listeners - one on port 8883 and one on 1883. What's the difference, and which one needs to be exposed publicly?
[1] - https://github.com/gravitl/netmaker/blob/master/docker/mosquitto.conf
b
bored-island-21407
08/20/2022, 1:57 PM
8883 should be exposed publicly. 1883 is only listening on localhost -- to allow the netmaker server to connect locally
bored-island-21407
08/20/2022, 1:58 PM
that being said, if you are using traefik, traefix will proxy the mqtt connection to 8883 and in this case neither 8883 nor 1883 need to be exposed publically
l
lively-salesclerk-37295
08/20/2022, 1:59 PM
Gotcha, thank you! I am using nginx, but I am also reverse proxying MQTT, so same applies :)