Configure a Hardened Gentoo Kernel for a VPS?

I'm getting back into using Gentoo as my preferred distro, but I want to use the Hardened setup to increase security. I've not meddled with the kernel yet, but I wanted to ask first because I might only get one shot at this.

I've saved off my current server .config so I can start there. Does anyone have any suggestions for when I start the actual kernel config?

1 Reply

Linode Staff

Does anyone have any suggestions for when I start the actual kernel config?

  1. Take a snapshot of your Linode before you mess with any kernel things, this'll be your escape hatch if anything is completely broken. Alternatively, you could clone your Linode and mess with kernel configs there.
  2. If you custom compile, make sure your config includes the options listed here. If you're using your existing kernel config as a starting point, you're probably OK.

Lastly, be sure to check out Gentoo's hardened docs and feel free to reach out to the Linode Community or the #gentoo-hardened IRC channel if you run into any bumps along the way.

https://wiki.gentoo.org/wiki/Hardened/FAQ
https://wiki.gentoo.org/wiki/Hardened_Gentoo

Good luck!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct