sysctl.conf(5)

sysctl.conf5

Sysctl variables to set at system startup

Overview

sysctl.conf is made up of sysctl(8) variable assignments (variable=value) with comments designated by a hash mark (‘#’).

/etc/sysctl.conf is read at system startup by rc(8) early on in the boot sequence.

Files

/etc/sysctl.conf
/etc/examples/sysctl.conf

Examples

To turn on IP forwarding, one would use the following line:

net.inet.ip.forwarding=1

To cause the kernel to reboot on a panic, instead of dropping into the debugger, the following can be used:

ddb.panic=0

Releases

58 releases since OpenBSD 2.4; the text changed 10 times.

  1. 2.4
  2. 2.5
  3. 2.6
  4. 2.7–3.3
  5. 3.4
  6. 3.5–4.1
  7. 4.2–6.3
  8. 6.4
  9. 6.5–6.6
  10. 6.7–7.6
  11. 7.7–8.0

History

A sysctl.conf file first appeared in OpenBSD 2.3.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.