Manage kernel modules and their parameters

1 hour
  • 2 Learning Objectives

About this Hands-on Lab

In this exercise, you need to modify a kernel module to provide more information.

*This course is not approved or sponsored by Red Hat.*

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Enable nf_conntrack time stamping in the running kernel.

Check to see if the module is loaded:

lsmod | grep nf_conntrack

View the parameters available for the nf_conntrack module:

modinfo nf_conntrack

Verify the current setting of the timestamp parameter:

cat /sys/module/nf_conntrack/parameters/tstamp

Stop the firewall and unload the module:

systemctl stop firewalld
modprobe -r nf_conntrack

Load the module with timestamping enabled:

modprobe nf_conntrack tstamp=1

Verify the current setting of the timestamp parameter:

cat /sys/module/nf_conntrack/parameters/tstamp
Make the change persist through a restart.

Make the change persist through a reboot:

echo "options nf_conntrack tstamp=1" > /etc/modprobe.d/nf_conntrack.conf

Additional Resources

You have been asked to enable connection tracking timeflow stamping in the Linux kernel of a particular host. This change should take effect immediately, as well as persist upon reboot.

The kernel module to change is nf_conntrack, you need to modify the parameter that enables time stamping.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?