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 2x 10GB OPNsense Quad Core i5-8500 8GB RAM 3Port Gigabit Firewall AES-NI SSD picture

HP 2x 10GB OPNsense Quad Core i5-8500 8GB RAM 3Port Gigabit Firewall AES-NI SSD

$199.95



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00



OPNsense Firewall 16-Core Atom C3958 16GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI picture

OPNsense Firewall 16-Core Atom C3958 16GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI

$195.00



SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED picture

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED

$999.99



OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$115.00



Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN picture

Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN

$229.99



Protectli Vault FW4B-0-8-120 4 Port Firewall Mini PC 8gb 128gb SSD Celeron J3160 picture

Protectli Vault FW4B-0-8-120 4 Port Firewall Mini PC 8gb 128gb SSD Celeron J3160

$149.99



Sophos XG 210 Rev. 3 Firewall Appliance – 8GB RAM / 128GB SSD – Tested & Reset picture

Sophos XG 210 Rev. 3 Firewall Appliance – 8GB RAM / 128GB SSD – Tested & Reset

$149.99



Barracuda NextGen CloudGen Cloud Based Firewall F280 BNGF280a w/ 8.3.1 Firmware picture

Barracuda NextGen CloudGen Cloud Based Firewall F280 BNGF280a w/ 8.3.1 Firmware

$89.99



SONICWALL TZ270 Network Security Base Appliance Only (02-SSC-2821) - Open Box picture

SONICWALL TZ270 Network Security Base Appliance Only (02-SSC-2821) - Open Box

$195.00