Refrence SSH reverse proxy solution for single device.
this is for thousands of devices that most simple solution on the World.
Copy directory structure to server and client root directory.
git clone https://github.com/liudhonghua/sshtunnel
cp -r sshtunnel/* /
systemctl restart sshd
Good lucky!