I’m trying to set up a small camera surveillance project on a construction site without cable internet access so I’m able to follow up on construction from anywhere basically. I’ll be using an LTE modem for internet access (dynamic ip). I’m not a super experienced coder or hardware expert so please bear with me as I’m trying to learn step by step
For a small schematic overview of my setup please check:
So I’ve got an IP camera attached to a PoE network switch, together with the raspberry pi and an LTE modem. In order to access the live feed or a screencap I can access it from the raspberry pi using the following url (network on the PoE Switch): 192.168.0.3/cgi-bin/viewer/video.jpg
In order to get internet access I have an LTE modem attached to it. The mobile connection does not offer a fixed IP address, so I have a script running on the raspberry pi that checks it’s public IP address on a set interval and uploads it to an S3 bucket if it detects a change so I always know the current public IP address (which of course I’m guessing I need in order to connect to the raspberry pi or the IP Cam).
Now to the main issue: I’m trying to figure out how to reroute a request from an external source (me somewhere from remote location) through the public IP address to the internal IP (192.168.0.3) where I can access the live feed.
So my main questions are:
- How to reroute incoming request to the correct camera?
- What if I decide to attach multiple camera’s?
- How do I make sure this is done in secure way?
- Right now it feels like I should set up a kind of web server on the raspberry pi to handle the incoming request, authentication and rerouting to correct camera part? But being fairly new to this stuff, not sure…
Any pointers or advice on this would be more than welcome. Not expecting someone to solve it for me, just trying to find some pieces to try and solve the puzzle myself