-
encrypting SWAP by default
I see that some time ago someone released a version of Knoppix 3.2 that would among other things encrypt the swap drive (http://www.bouissou.net/knoppix-mib/...oppix-Mib.html). In the current verson of knoppix, is there an easy way to do this? I use an encrypted persistent home on a USB stick, but when I'm running on any box that has a swap partition, I know I'm leaving clear-text data behind.
Thanks
-
Senior Member
registered user
Re: encrypting SWAP by default
--One way to do this is disable all type 82 partitions (swap) and comment them in /etc/fstab.
--Then create an encrypted filesystem, and also create a swapfile on that FS after mounting it:
[ insert cryptoloop instructions here ]
' mount blah /mnt/encrypted -odefaults,rw,noatime '
' cd /mnt/encrypted '
' time dd if=/dev/zero of=swapcrypt.swp bs=1M count=64 ' == Create 64MB zero-file
' chmod 700 swapcrypt.swp ' == Make sure only root can read it
' mkswap swapcrypt.swp ' == Make it into a swap area
' swapon swapcrypt.swp ' == Activate it
' swapon -s ' == Check it
--That said, see these links:
( Search for " Debian " on this page )
http://wiki.noreply.org/noreply/TheO...tionalSecurity
http://www.ussg.iu.edu/hypermail/lin...08.0/1163.html
http://linuxfromscratch.org/pipermai...ch/002819.html
http://www.gentoo.org/proj/en/harden...yptography.xml
--I'm pretty sure OpenBSD has encrypted swap, if not by default then at least as an option.

Originally Posted by
g4j
I see that some time ago someone released a version of Knoppix 3.2 that would among other things encrypt the swap drive (
http://www.bouissou.net/knoppix-mib/...oppix-Mib.html). In the current verson of knoppix, is there an easy way to do this? I use an encrypted persistent home on a USB stick, but when I'm running on any box that has a swap partition, I know I'm leaving clear-text data behind.
Thanks
Similar Threads
-
By A. Jorge Garcia in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 06-19-2007, 06:26 PM
-
By Kowood in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 04-14-2005, 07:57 PM
-
By jj54 in forum General Support
Replies: 1
Last Post: 11-09-2004, 08:16 PM
-
By sirmax in forum General Support
Replies: 7
Last Post: 04-10-2003, 11:21 PM
-
By CubeDweller in forum General Support
Replies: 6
Last Post: 03-26-2003, 08:09 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

HP ProLiant MicroServer AMD Athlon II Neo N36L 1.3GHz 8GB RAM 4-Bay NAS Server
$99.00

Supermicro 721-2 Mini Tower Black Computer Server NO Hdd
$375.00

Supermicro 1U Server 514-4 (X11SSZ-QF) | i7-7700 - 16GB DDR4 Ram - Rackmountable
$249.00

BOXX B157552 SuperMicro X10DRT-L 2x Intel 2630V4 NO RAM & SSD Server
$160.99

HP PROLIANT MICROSERVER GEN8 E3-1220LV2 @ 2.30GHz, 8GB RAM, NO HDD/OS
$164.97

Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3
$219.99

HPE ProLiant MicroServer Gen 10 - Opteron x3421 - 16GB DDR4 - 120GB SATA SSD
$350.00

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G
$449.99

Supermicro 505-2 Server
$280.00

VeloCloud Edge 840 Supermicro 505-2 Intel Xeon D1518 240GB SSD32GB RAM Server
$395.00