Results 1 to 2 of 2

Thread: encrypting SWAP by default

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Location
    Orlando
    Posts
    2

    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

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    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.


    Quote 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

  1. swap partition?
    By A. Jorge Garcia in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 06-19-2007, 06:26 PM
  2. Swap Partitions
    By Kowood in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 04-14-2005, 07:57 PM
  3. Auto encrypting USB Flash disk.
    By jj54 in forum General Support
    Replies: 1
    Last Post: 11-09-2004, 08:16 PM
  4. swap question
    By sirmax in forum General Support
    Replies: 7
    Last Post: 04-10-2003, 11:21 PM
  5. Configuring Swap
    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
  •  


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

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 picture

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 picture

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 picture

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 picture

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 picture

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 picture

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 picture

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

$449.99



Supermicro 505-2   Server picture

Supermicro 505-2 Server

$280.00



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

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

$395.00