Use /proc/sys and sysctl to modify and set kernel runtime parameters

By | October 4, 2018

This commands will display all the kernel tuneables.

#sysctl -a

You can grep any specific tuneable

sysctl -a | grep ip_forward
Task.

Convert linux machine into router.

sysctl -a | grep ip_forward

enter this value into the file

#vim /etc/sysctl.d/ip-forward.conf
net.ipv4.ip_forward = 1

Now Restart the machine

reboot

After the reboot the value for net.ipv4.ip_forward will change from 0 to 1 .
In this way you can change any tuneables.

Video Explanation

Youtube
( Please subscribe to our channel )

Share This Post

Leave a Reply

Your email address will not be published. Required fields are marked *