Encrypt swap

Is /dev/ad0s1b your swap partition
Code:
swapctl -l
I don't know if you have to umount swap to write random to it. Look at
Code:
man swapoff
man swapon
 
I did it :)
This is the steps to encrypt swap with bde.
Boot to single user mode
Run:
Code:
fsck -y
mount -u /
mount -a -t ufs
dd if=/dev/random of=/dev/ad0s1b bs=1m
Where /dev/ad0s1b is your swap partition. Maybe is different in every system.
Code:
ee /etc/fstab
Change from this
Code:
/dev/ad10s1b	        none			swap			sw		0	0
To this
Code:
/dev/ad10s1b[B].bde[/B]	        none			swap			sw		0	0
Code:
ee /etc/rc.conf
and add this line
Code:
gbde_swap_enable="YES"
Reboot and thats it :)
 
Back
Top