Sign inSign up free

737. Kernel Settings That Survive a Reboot

hard 40 XP ~10 minHands-on lab

After every reboot, this server comes back with the wrong kernel settings, although someone added the right ones to a sysctl file last month. The kernel itself can't be changed from this sandbox, so you fix the files that are applied at boot (sysctl --system).

Task

After the next boot, these values must be in effect:

ParameterValue
net.ipv4.ip_forward0
vm.swappiness5
net.core.somaxconn8192
kernel.kptr_restrict2

Don't edit or delete anything under /usr/lib/sysctl.d: it belongs to packages.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of Prepare for the LFCS. Next step: Sandbox a Service With systemd

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.