Skip to content

tunneling compatible for exterior access

Olivier SCHMITT edited this page Dec 4, 2020 · 2 revisions

1.NGROCK

Go to https://dashboard.ngrok.com/
Create a free account.
Enter in your account.
On the top you will see the download links.
Download the package with wget like:

wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip

Unzip the package by:

unzip ngrok-stable-linux-arm.zip

Config the executable with your token as is mentioned on the welcom page of your account:

./ngrok authtoken xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Start your UHRR instance:

PYTHONPATH=/usr/local/lib/python3.7/site-packages:$PYTHONPATH ./UHRR &

Start the nrock instance:

./ngrok http https://127.0.0.1:8888

This will show you your temporary url access:

Forwarding                    http://e10e2f3c5917.ngrok.io -> https://127.0.0.1:8888
Forwarding                    https://e10e2f3c5917.ngrok.io -> https://127.0.0.1:8888

Here is https://e10e2f3c5917.ngrok.io

This is not perfect and dépend on your network condition and the proxy server location...but it work...

2.NGROCK like with SSH tunneling and external vps.

IF you have one vps or computer who is accesible via ssh and have public IP adress.

a.Go to the public server and edit /etc/ssh/sshd_config and modify or add if necessary:

AllowTcpForwarding yes
GatewayPorts yes

b.on the "client" where is your local uhrr or another http serveur you luch:

ssh -R 8888:localhost:8888 your_account@your_vps_ip.fr