NethServer Version: 7.3 Module: Network
I have tried setting up both ngrok and pagekite and can get as far as seeing the default webpage from the Nethserver ok.
When I try to access either Nextcloud or Webtop I get an error message in the browser saying “too many redirects”.
I have looked through the documentation but wondering if any has successfully implemented this and could help please?
I tried ngrok and came to the same result as you did. It seems that you are bound to a local http port, so server manager just won’t work. But you maybe could setup virtual hosts and use the hostname directive to use nextcloud, but that’s on the “paid plan”.
But I have a general question. Why do you need these services? Nethserver has a nice firewall with port forwarding, vpn, reverse proxy etc. and it is all secured by you and not a 3rd party…
The reason is my Internet service is delivered by Mobile Broadband and
as such the modem gets a 10.x.x.x WAN address which is NATed to a
192.168.x.x address on the LAN, so trying to access the public IP
address - even with a Dyn DNS service - can’t be done - or so I believe.
If you have another way of doing this I would love to hear it!
I’d say it depends on your provider. I use 3 Hutchinson in Austria and they give me the possibility to get a public IP with open firewall(open internet):
OK, if a provider change isn’t possible…
What do you want to serve?
You can serve your own default page easily by creating a /var/www/html/index.html/php.
You may try copy a webapp directly to /var/www/html/
Some of the webapps run on specific ports or you can change them, this may work with ngrok http.
If you just want to manage Nethserver, what about open ssh by ngrok and manage via command line or text web browser like links?
This is just a workaround, I don’t know if these changes will survive an update. EDIT:
Some webapps will stop working with this workaround, like ocsreports, dl-transmission, webmail, phpmyadmin…and maybe more.
It doesn’t do that. Maybe your browser does. You can browse to “http://NS/nextcloud” and it will keep http but I think the problem of ngrok or pagekite is that they can’t manage rewriting.
I couldn’t get it working from within the Nextcloud app, I did it from the command line with:
beame-insta-ssl tunnel 127.0.0.1:443 https --fqdn xxxx.beame.io
I had to add xxxx.beame.io into trusted domains in config.php
I’ve tried a fresh install and installing from there but to no avail, so I’ve sent a message to the folks at beame.io so let’s see what that brings.