Bash script for optimizing performance and hardening Linux kernel by adjusting the kernel parameters. It is self-explained and not supposed to be a one-thing-fit-all script. You should see the script for yourself and adjust the values for your need. Use it with caution.
wget https://raw.github.com/minhdanh/Linux-Kernel-Tuning-and-Hardening/master/kernel_hardening_tuning.sh
chmod +x kernel_hardening_tuning.sh
./kernel_hardening_tuning.sh
vim /etc/rc.local
# Add the following line:
/root/scripts/kernel_hardening_tuning.sh
I made the script using the following sources:
- http://docs.oracle.com/cd/E19644-01/817-5051/pt_tuningos.html#wp62221
- http://www.netadmintools.com/art295.html
- https://cs.uwaterloo.ca/~brecht/servers/openfiles.html
- http://www.nateware.com/linux-network-tuning-for-2013.html
- http://www.lognormal.com/blog/2012/09/27/linux-tcpip-tuning/
- http://aiscaler.com/wiki/linux-tuning-for-high-performance
- http://www.cyberciti.biz/faq/linux-tcp-tuning/
- https://www.frozentux.net/ipsysctl-tutorial/ipsysctl-tutorial.html
- http://www.susegeek.com/networking/network-performance-fine-tuning-in-opensuse-suse/
Feel free to make it better. Pull requests are welcome.