Linux

SSH Dictionary Attack Prevention with iptables

It is ideal to slow down the SSH dictionary attack when the infested host started to brute force the SSH authentication. There are many scripts/user-land daemons that perform monitoring and blocking. I prefer to use something that has less demand in memory/CPU usage. IPTables module provides a kernel level solution with little overhead.

Read More
Scripting

Rule-based DoS attacks prevention shell script

Dette scriptet er ikke testet samt DoS bør hindres på kernel nivå! A simple rule-based DoS attack-prevention shell script. However, the proposed shell script is not a perfect tool for preventing DoS attacks, but a powerful tool for alleviating DoS attacks overheads of the Linux servers significantly.

Read More
Linux

Getting modelines for x.org

Getting modelines can be done by calculating them yourself or using a online calculator like this one. But still, you have to get all this information about your monitor. You wonder, why can’t the monitor itself just supply them? Well, it can. You can get it by using the EDID information.

Read More
Scripting

Kernel Panic Reboot

By default after a kernel panic Linux just sits there and waits for a user to hit the restart button. That can be a bad thing if it’s a remote server.

Read More