OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: peterwkc on November 20, 2024, 02:51:02 AM

Title: LUKS Encryption
Post by: peterwkc on November 20, 2024, 02:51:02 AM
Dear all, I would like to have LUKS whole disk encryption on opnsense box. How to achieve it? Is there any similar mechanism for HardenedBSD?
Title: Re: LUKS Encryption
Post by: Patrick M. Hausen on November 20, 2024, 06:02:13 AM
There is GELI for that. You would need to perform a manual FreeBSD installation, then use the bootstrap method to install OPNsense on top.

https://freebsdfoundation.org/wp-content/uploads/2019/11/Configuring-Full-Disk-Encryption.pdf

https://github.com/opnsense/update/tree/master
Title: Re: LUKS Encryption
Post by: peterwkc on November 27, 2024, 08:33:51 AM
Any others encryption method directly from Opnsense installation ?
Title: Re: LUKS Encryption
Post by: Monviech (Cedrik) on November 27, 2024, 08:47:09 AM
You could use self encrypting drives (SEDs).

Title: Re: LUKS Encryption
Post by: Patrick M. Hausen on November 27, 2024, 08:51:16 AM
Quote from: peterwkc on November 27, 2024, 08:33:51 AM
Any others encryption method directly from Opnsense installation ?

If there was I would have told  ;)

Install FreeBSD 14.1-RELEASE with GELI, bootstrap OPNsense.
Title: Re: LUKS Encryption
Post by: dseven on November 27, 2024, 09:38:27 AM
Run OPNsense in a VM on Proxmox, and do encryption there, perhaps?

I wonder what the value would be, though - if someone physically steals your firewall and is able to read the disk, what are you going to lose (besides the hardware)?
Title: Re: LUKS Encryption
Post by: Monviech (Cedrik) on November 27, 2024, 09:41:43 AM
The value here is probably a checklist somewhere for compliance.

It's why self encrypting drives exist, just put them in and you can say "Yeah indeed I have encryption thanks"
Title: Re: LUKS Encryption
Post by: Patrick M. Hausen on November 27, 2024, 09:42:08 AM
It's really dead easy. The bootstrap method is a supported way of installing OPNsense and fully documented in the Github repo I linked above.

And the FreeBSD HowTo for a GELI based installation is also quite extensive.
Title: Re: LUKS Encryption
Post by: viragomann on November 27, 2024, 05:38:22 PM
Quote from: peterwkc on November 27, 2024, 08:33:51 AM
Any others encryption method directly from Opnsense installation ?
Why are you not happy with GELI?

I installed OPNsense with this months ago. I don't remember how I exactly I did it, but I can tell you, it was as easy, that I didn't found it worth to document the steps, since it's well documented on Github.