Access to various ports of different raspberries using dynamic IP and 3G modems

I have about 100 raspberries, each of which is installed without connecting to an Ethernet network, so they must transfer data to the main server using a 3G modem. When 3G connects, your ISP gives you a dynamic IP address.

I have an SSH reverse tunneling solution (explained here http://www.thirdway.ch/En/projects/raspberry_pi_3g/index.php ), but I can just connect to port 22 and in the main server I have 100 different ports for each tunneling ... a nightmare.

Also, I can not connect to other ports, if I need, only 22.

About the dynamic IP interface I know the dyndns solution (or the like).

Is there a good solution to work with all of them easily and can connect to ANY port?

I would like to do things like:

  • install munin (i need 4949)
  • connect to myraspberry45.mydomain.com to 80
  • ... or 22 if I want
  • ...

Any idea?

+4
source share
1 answer

There may be other solutions that would be more complex. Although you may feel a little messy at first with Ethernet cables, you will eventually find them very reliable and simple. (obviously not in a physical sense.) Nevertheless, this should help. Raspberry Pi Cluster

0
source

Source: https://habr.com/ru/post/1568820/


All Articles