Advice on best way to run ngrok on TrueNAS Scale (22.12.1)?

billbillw

Dabbler
Joined
Jan 6, 2023
Messages
33
I'm a home user and primarily use TrueNAS Scale for as a SMB file server, and to run my Plex Server (using the Official App). However, I have an internet service that uses CG-NAT, so I can't port forward. When I'm outside of home, all my Plex feeds go through the Plex relay service, which is slow and drops the quality of the stream significantly.

I would like to use ngrok to give an alternate IP for my Plex Server and hopefully get better quality outside my home. I know I could run ngrok on another PC in the house, but I have also know that you have to reconfigure the settings in Plex every time ngrok restarts/reboots. By putting it on my server, I was hoping to have that happen less frequently since I would not have windows update causing reboots overnight.

So far, I have looked and can't find any Official or TrueChart app for ngrok. I looked further and found a docker (wernight-ngrok), but I am not having luck with that. I have tried repeatedly to get this docker to run, but it is always stuck at Deploying. I created a dataset and user for ngrok, so I really am not sure what the issue is.

Has anyone successfully deployed ngrok on TrueNas Scale? If so, could you share the method/configuration?

Thanks in advance.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

billbillw

Dabbler
Joined
Jan 6, 2023
Messages
33
I still get stuck on deploying. I was hoping for some help on specific setup of the docker in Scale. What to leave default, what needs to be specifically changed, etc.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I see nobody else has shown interest in responding.

I'm not a user of ngrok, so it's difficult for me to tell you how I run it (as I don't).

If you can give me a clearer indication of what you're doing and the resulting errors/logs, maybe I can help you work it out.

Showing the config of the app and the App Events from the app card when it's trying to deploy would be a start.
 

billbillw

Dabbler
Joined
Jan 6, 2023
Messages
33
I see nobody else has shown interest in responding.

I'm not a user of ngrok, so it's difficult for me to tell you how I run it (as I don't).

If you can give me a clearer indication of what you're doing and the resulting errors/logs, maybe I can help you work it out.

Showing the config of the app and the App Events from the app card when it's trying to deploy would be a start.
I'm just trying to get the docker image to deploy so that I can go and configure it.
I have setup a dataset called ngrok, I have a user and group assigned in the credentials to ngrok (user 3001, group 3002).
I have tried several variations on how to setup things in the Launch Docker Image menus. It never goes past Deploying. One issue I might see is that TrueNas Scale doesn't seem to let you change the "Version Number" at the very beginning when you start to setup in the Launch Docker Image. The Docs Hub guide says to enter the version of the application you want (For ngrok it would be 3.1.1?), but it seems stuck on 2212.0.1 which is the default. I think that is screwing up the image pull.
 

Attachments

  • Screenshot 2023-03-29 083350.jpg
    Screenshot 2023-03-29 083350.jpg
    98.3 KB · Views: 260
  • Screenshot 2023-03-29 083922.jpg
    Screenshot 2023-03-29 083922.jpg
    50.5 KB · Views: 208
  • Screenshot 2023-03-29 084035.jpg
    Screenshot 2023-03-29 084035.jpg
    86.1 KB · Views: 197

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
So the image repository just needs to be ngrok/ngrok (the rest is assumed/automatically filled).
 

billbillw

Dabbler
Joined
Jan 6, 2023
Messages
33
So the image repository just needs to be ngrok/ngrok (the rest is assumed/automatically filled).
That seemed to help, but it is still not deploying.
 

Attachments

  • Screenshot 2023-03-29 090339.jpg
    Screenshot 2023-03-29 090339.jpg
    90.6 KB · Views: 210

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Other than the name of the image to pull/run, what have you specified in the app settings? it's probably something there that's preventing it from starting.

The examples seem to be suggesting the container cmd needs to be something like http 80

I guess without a command, the container just exits.
 

billbillw

Dabbler
Joined
Jan 6, 2023
Messages
33
Other than the name of the image to pull/run, what have you specified in the app settings? it's probably something there that's preventing it from starting.

The examples seem to be suggesting the container cmd needs to be something like http 80

I guess without a command, the container just exits.
I have the Networking Host Interface set to bond1, DHCP
Storage Host Path to /mnt/STORAGE1/ngrok
Mount Path to /mnt/STORAGE1/ngrock/data
Then Configure Container User 3001 (which has credentials to the dataset /ngrok) and group 3002 (also has /ngrok credentials).
Everything else is default.
See the dataset permissions below.
 

Attachments

  • Screenshot 2023-03-29 094343.jpg
    Screenshot 2023-03-29 094343.jpg
    86.9 KB · Views: 260

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You need to set the cmd arg to the needed protocol and port like http 80

What are you even wanting the storage to do for you with that app? are you storing the config file there?
 

Oskat

Cadet
Joined
Jul 25, 2021
Messages
1
Hello, same problem.
I am behind a double nat. I have been looking for a solution around to 2 years. First of all, we apreciate @sretalla your atention, I think we are open to another proposals and alternatives to securely access our services from the Internet, to our Truenas scale servers.
NGROK seems like a good alternative.

@billbillw, did you be able to make to work the instance on docker? If so, please please please share it.

Greetings.
------------------------------

Hola, mismo problema. Me encuentro detras de una doble nat. Tengo 2 años buscando una solución. Antes que nada, @sretalla, creo que estamos abiertos a propuestas y alternativas para poder acceder desde internet de forma segura a nuestros servicios en nuestros servidores truenas scale. NGROK parece una buena alternativa.

@billbillw, ¿pudiste hacer funcionar la instancia en docker? si fue así, porfavor compartelo.

Saludos.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Greetings -

Welcome to these forums.

Please note that the main forums are English language, and you are expected to post in English here. We have a section for International discussion that includes a Spanish section, and you may post in Spanish there. Supporting multiple languages in the main forums is untenable. If you do not speak English natively, please know that we're fine with machine-translated messages from services such as Google Translate. These don't always work well, but we will still definitely try to help you!


-----
Saludos -

Bienvenido a estos foros.

Tenga en cuenta que los foros principales están en inglés y se espera que publique en inglés aquí. Tenemos una sección para discusión internacional que incluye una sección en español, y puedes publicar en español allí. La compatibilidad con varios idiomas en los foros principales es insostenible. Si no habla inglés de forma nativa, sepa que estamos de acuerdo con los mensajes traducidos automáticamente de servicios como Google Translate. Estos no siempre funcionan bien, ¡pero definitivamente intentaremos ayudarte!
 

billbillw

Dabbler
Joined
Jan 6, 2023
Messages
33
Hello, same problem.
I am behind a double nat. I have been looking for a solution around to 2 years. First of all, we apreciate @sretalla your atention, I think we are open to another proposals and alternatives to securely access our services from the Internet, to our Truenas scale servers.
NGROK seems like a good alternative.

@billbillw, did you be able to make to work the instance on docker? If so, please please please share it.

Greetings.
------------------------------
I gave up and just ran the ngrok agent on a windows PC that runs 24/7 most of the time. It works, but I have to leave a CMD window open in my Admin account to keep the tunnel open. I also have to reconfigure the tunnel and change the ip address in Plex each time the PC runs an update and reboots...
A limitation of free service I suppose.
 
Top