TrueNAS VM pointing to https certificate

carloshell

Cadet
Joined
Apr 29, 2021
Messages
1
Hello!

I am trying to do something quite different. I am running a quite powerful machine on my LAN with a dynamic public IP. I also already have a ddns setup with wireguard to give access to some of my friends and co-workers (to access some LAN VMs).

I used to do it as an https setup with a droplet on digital ocean and it was extremely easy and straight forward. The downsides from these are the pricing and digital ocean has access to our data if we don't encrypt it.

I would like to do this (please help :P)
  • Setup a VM for rocketchat (as a example), hosted on TrueNAS, on my LAN. (easy part)
  • Find a way to setup https for that VM. I had some ideas and I am not sure which will actually work:
    • Wireguard to a droplet, digital ocean and do the https from there? I am not sure this would work because the https certificate/ A DNSrecord would be generated from the VM, via rochetchat snap.
    • OR Buy a dedicated IP service and connect the VM to it (still trying to find such service for terminal, a lot of options with GUI like PIA, still trying to find one for servers). I would then try to setup the https certificate/A DNSrecord on that public dedicated IP. Unclear if this would work, I can see some network related issues, but can't identity them atm.
    • OR any other ways you guys might think of?
That would allow the VM to be used outside the LAN network with https protection for login/pw and data being push to the server or from it.

Thank you very much and this is my first post here!!

Carloshell
 
Top