Encrypt your swap partition in OpenBSD

openbsd.png

By default OpenBSD 4.3 will encrypt the swap partition. To turn this on for OpenBSD versions 3.7 and below:

  • Step 1 – Enable this feature without a reboot
  • Step 2 – Edit the sysctl config file, so that after a reboot the swap partition will be encrypted

1. Change the kernel state variable:

# sysctl -w vm.swapencrypt.enable=1

2. Edit /etc/sysctl.conf from:

#vm.swapencrypt.enable=1

to:

vm.swapencrypt.enable=1

Related Posts

Comments are closed.