User and password on first run?

Thanks for bearing with me for the last hundred meters… I’d be happy if I could start the server next week…

As to letsencrypt, after running diagnostics, getting:

Access to URL https://*****.freedombox.rocks failed

Let’s Encrypt server will try to contact your machine from the outside to confirm that you own the domain. If the connect from outside, does not work, then LE won’t either. After you fix the outside access issue, simply click ‘Obtain’ in the LE app to fix that.

Your network administrator needs to forward

From IP: anywhere (since your external users could be anywhere)
From ports: 80 and 443
To IP: Your host IP address
To ports: 8080 and 4430 (assuming these are ports you have forwarded in VirtualBox to your guest).

Your host firewall must be configured to accept these ports. 80 port mapping is for Let’s Encrypt to work.
Your mapping will be

External Client → Company external IP : 443 → Your host machine : 4430 → Your FreedomBox : 443
External Client → Company external IP : 80 → Your host machine : 8080 → Your FreedomBox : 80

I am not sure if Matrix provides an invitation mechanism. You can create non-admin FreedomBox user accounts for each of your intended user accounts and ask them to use those accounts with matrix.

Hi and thanks for the feedback, appreciated. As was to be expected, I’m still not able to make it work. Maybe it’s because we are behind an authentifying firewall ? In that case, should I use pagekite? It does show up in the system settings in Freedombox, but when trying to install it, getting error msg :

another installation or update is being executed. Please wait a few moments and try again.

But I’m getting this each time, even when rebooting vbox. How should I proceed to install this with Freedombox in virtualbox? A new VM ?

Or maybe there’s free alternatives to pagekite, such as ngrok or portmap.io ?

Network admin told me no special port for http, just plain old 80. We do have special port for authenticating.
Just ran diagnostics in Freedombox. Everything passed except :

  • letsencrypt
  • Application : networks
    Using DNSSEC on IPv4
    Using DNSSEC on IPv6
    Can this shed any further light or can I do a more thorough debugging?
    Could there be a conflict with the Apache server that got automatically installed and also uses ports 80 and 443?

Secundo, I might try out a different independent network from the corporate one. This time I’d be on wifi. Which network settings should I apply in VirtualBox in this case ? When I tried bridged network, vbox crashed and got following error message :

You must specify a machine to start, using the command line.
Usage: VirtualBoxVM --startvm <name|UUID>
Starts the VirtualBox virtual machine with the given name or unique identifier (UUID).

Does it change anything in the choice, knowing that the wifi internet access is determined by the MAC address of the laptop on which Freedombox is running (i.e. should we add the generic MAC address of the virtual network interface in vbox too ?).

Do I need to set up a specific new wifi network with all the details?

looking forward to ur assistance !

1 Like

@ifreedombox were you able to get FreedomBox up and running?

no, not yet, still waiting for sunil’s help. But do have an update though. Problem is ports 80 and 443 are already rerouted for another internal ip, so is there a way around this (maybe like rerouting again from that PC to mine internally )?

If nothing fixes this issue, please try the following commands on a shell (either with SSH or Cockpit):

dpkg --configure -a
apt -f install
reboot

Don’t have experience with those other services.

In a typical network setup, traffic coming from the Internet will not be routed to your specific machine. Unless network administrator configures as I have described, it will not work.

These are failing usually, ignore them.

All the advice given before is the same. Except you are the network administrator now. Login to your Wi-Fi router and configure port forwarding as described.

This problem seems unrelated to bridge network setup. Make sure you have selected the correct network interface to bridge with. This should be network interface that you get Internet connection with on the host machine.

In case of bridged mode, yes, the virtual network adapter must be whitelisted too. In case of NAT, your whitelisted host Wi-Fi MAC address is sufficient.

Finally,

  • Consider trying a single board computer to get around problems with VirtualBox port forwarding.
  • If your network administrator can’t help you or does not understand port forwarding, then the only choices for you are Pagekite (or similar) or setup a cloud instance.

Good. Some updates. We routed my FBOX through another ISP having ports 80 and 443 available for forwarding. Finally managed to get network admin do the proper forwarding according to your instructions (see screenshot). Is this ok ?


This is how things look like in network settings in virtualbox :
vbox1
vbox2

Guess what ? Letsencrypt still doesn’t work !! When I try to simply reach my matrix address (https://*****freedombox.rocks) it also doesn’t work. So now I’m really lost… Also it says saving debug to /var/log/letsencrypt, but that folder doesn’t even shop up there !

Does the random MAC address of the VM in virtual box interfere with the settings ? Inside our LAN Internet access is granted with the physical MAC address of the PC as identifier.

I believe I read somewhere someone had to actually disable SSL to force http connections to letsencrypt. Could this be the culprit and if so, how to temporarily disable SSL?

Is there any detailed debugging available on FBOX I could send?

With all this, it might be worthwhile to try out Pagekite (or similar). What (free) alternatives to Pagekite do you recommend?

When selecting Pagekite in FBOX, it says it’s not available to my distro… What does that mean.

Can you help me out with setting up Pagekite ? Doesn’t look very straightforward for *nix noobs like me. Thanks again.

looking forward to ur help…

Your router configuration and virtualbox looks correct. You should also map 8448 to 8448 in VirtualBox.

Looks like you are using MacOS. Check to see if your firewall is blocking incoming traffic on the three ports and add exceptions if necessary.

To debug the current situation and ensure that router mappings are working, try the following exercise:

  • Shutdown the FreedomBox VM.
  • On MacOS, machine run:
    nc -l 4430
  • On another machine connected to Internet differently than your MacOS machine (such as via 4G) run:
    nc yourmachine.freedombox.rocks 4430

You should see the same message on the MacOS machine. If it works, then the outside traffic is able to reach your machine. Otherwise, you need to check router mapping, DNS IP address, firewall etc. again.

Once this works, stop the nc processes and start FreedomBox machine again. Then try to access FreedomBox web interface from the alternate machine.

I don’t believe this should matter.

FreedomBox has this properly handled. If you can access your FreedomBox web interface from the outside Internet, LE should succeed. Focus on that.

I don’t know of any. I recommend Pagekite.

Pagekite is temporarily not available in testing distribution. We are working to fix this problem. It is available in stable distribution.

See this manual page: FreedomBox/Manual/PageKite - Debian Wiki

OK thanks for the feedback. Yes I’m on Mac OS.
Native firewall isn’t activated and I deactivated mac’s equivalent to zone alarm.
Where do I have to paste this command ? In the Terminal ? That’s what I did and I don’t see anything happen. Do I have to type sudo before it ? Someone tried to access from his iPhone in the webbrowser (Safari) and that yielded a Google search. So obviously we’re doing something wrong. Thanks for giving us some more details as where to type this commands in…

Yes, you do need type these command in the terminal. Also see this: https://superuser.com/questions/115553/netcat-on-mac-os-x