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