Virtual Machine Display over HTTPS

dasunsrule32

Dabbler
Joined
Dec 5, 2012
Messages
23
Is it possible to proxy or configure the VNC/SPICE connections over tcp/443 (HTTPS) rather than tcp/5800 over HTTP? I have a use case for it to just be tunneled over 443 for the following reasons:
  • I'm using Cloudflare Tunnels to access the box remotely, since this port is not over 443, I cannot access the display of the VM over Cloudflare Tunnels
  • Secure the console display over TLS to prevent eavesdropping
Thanks in advance for any help or suggestions!
 

dasunsrule32

Dabbler
Joined
Dec 5, 2012
Messages
23
This was implemented in TrueNAS-SCALE-22.12.0! Thank you for the awesomeness! I can now access my VM consoles over https and through Cloudflare Tunnels! :)
 

zubo100

Dabbler
Joined
Aug 25, 2022
Messages
19
This was implemented in TrueNAS-SCALE-22.12.0! Thank you for the awesomeness! I can now access my VM consoles over https and through Cloudflare Tunnels! :)
Hi! Could you maybe share the way you did this, or what exactly was necessary? I am trying to do the same thing, but was not successful so far.

I have a windows 10 virtual machine with a dedicated graphics card and TigthVNC server installed. I can access it localy over LAN, and I would like to access it also over the internet. I am also using cloudflare, and traefik for reverse proxy.
 

dasunsrule32

Dabbler
Joined
Dec 5, 2012
Messages
23
Just access your box over your Cloudflare Tunnel, then go to: Virtualization > Machine > Display. It will launch a session over tcp/443 vs the old method of tcp/590x. Nothing too crazy.
 
Last edited:
Top