I just installed ChirpStack on a R-PI to use the Network Server function.
As for now it is installed in my local network (home router) and has a local IP (192.168.0.20) I was dealing with opening ports in the router to let the external gateways to see the NS from outside, and I was setting up ports 80 and 8080 to be able to access configuration (luCI) and Application Server, and my router wasn’t allowing me to NAT port 8080.
Then I realized that I don’t need to setup my system from outside, all I need is the external gateways to send UDP packets to my NS.
What ports do I need to NAT from outside to my local NS setup?
First of all, did you install chirpstack gateway bridge? The command below shows how to check if it´s running on you system. The default port you have to open in yout firewall to receive external gateway data is UDP/1700 (as you can see in my netstat command).
root@iot-debian:~ # service chirpstack-gateway-bridge status
● chirpstack-gateway-bridge.service - ChirpStack Gateway Bridge
Loaded: loaded (/lib/systemd/system/chirpstack-gateway-bridge.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-11-23 20:53:19 UTC; 2 months 12 days ago
Main PID: 23720 (chirpstack-gate)
Tasks: 10 (limit: 4718)
I think I still can’t understand the role of the bridge…Does a gateway communicate to my NS thru UDP/1700 os thru MQTT? What’s does the bridge do in here?
Basically all I need is set up a basic GW so it can send LoRaWAN packets from a test device to my R-PI NS server. Initially my LoRAWAN gateway will be in my local wan (address 192.168.0.X forwaring to 192.168.0.20 which is my NS) and later on it will be somewhere else pointing to my external WAN IP whan I manage to set up NAT on my router
Your local gateway communicate with your local Chirpstack Gateway thru UDP/1700. From then on, the Chirpstack publish MQTT messages that are acessed by the Chirpstack LoraServer. However,
these messages can be accessed directly by you using the correct topic in your mosquitto client. You can see the Chirpstack architecture on the following link:
Ok my friend… To be honest with you I still don’t fully get it 100%. I had seen that layout several times before and I still don’t see the whole picture… And that’s probably what’s hindering my abilitiy to finish this setup
If I don’t see a proccess listening to port 1700 on my server it means I don’t have a gateway bridge process running right?
What would be the easiest way to install it? Luci web interce? Or CLI?
Sorry I was a Linux admin for many years but that was waaaay too many years ago
Thanks in advance!
Im out of luck…
This setup doesn’t have APT installer so the recommended command: sudo apt install chirpstack-gateway-bridge
doesn’t work on it
So I tried the “official” mathod to install on WRT which is LuCI, on its web server, but when I go to System-Software, after a usual “update”, I try to find package “chirpstack-gateway-bridge” but it states that
Manually install package
The package chirpstack-gateway-bridge is not available in any configured repository.
Thanks Eduardo, but I’m still 100% stuck.
This is a WRT distro and seems to lack both DEB and APT installers. Looks like it does work with ipkg/opkg packages directly.
Also it includes the web driven LuCi maintenance application, which does support the addition of an opkg source, but Im afraid the sources provided in the link you mentioned do not look related to this system.
Sorry I feel so outdated on this…
I know its very weird as the guide you pointed at is for Raspberry PI - ChirpStack OS gateway, which is exactly what I have, but I can’t execute any of those commands, all err out like they are made for a different distro of Linux…
Would you mind sending a little topology (drawing) of your setup showing the functional rules of each box and their operating systems)? Maybe I have completely misunderstood what you are trying to achieve.
No worries Eduardo, I’m wasting a lot of your time, nothing to apologize for
My setup is extremely simple for now. All I have is a Raspberry PI 4 with ChirpStack OS installed from the SD images in their DOWNLOAD section. That’s it… I want this “box” to listen for loRaWan packets from any gateway I would configure later.
It’s not running yet but when the R-PI server is running I want to start with a Linovision G67 gateway, but that’s not even out of the box yet…
Im going to close this post… I got tired of this ChirpStack OS distro failing on me everytime so Im trying again from scratch using a clean Ubuntu install and then the instructions for docker install.
Will be back to a new post if anything fails…
BTW just a final update on this. I started from scratch, I put an Ubuntu image in my SD, booted it in R-PI, followed all the install directions one by one, zero errors, this mkade a real good install with gateway-brige and all the needed components. I am now receiving LoraWAN packets from my device thru a gateway I added and decoding the info. Took me 1-2h to have it all working, I had put several days trying to get this working on ChirpStack OS Image…