limit: avg 3/min burst 10 LOG level warning prefix “[UFW BLOCK] “

To take the rules back to the default settings:sudo ufw reset Note: If you want to see how the sudo ufw reset will change your rules use –dry-run option first, then compare the /etc/ufw/before.rules.20170513_185835 file to the /etc/ufw/before.rules.20170513_185835 file. Example: To compare: After reset your server is able to login via ssh

Read More

how to restart unix when server load is high

Here is the script to restart a server automatically if it’s load increases above a limit : Use sudo if you have not permission Change the permisssion of file Now we need to add this script to cron which will run every 2 minutes Type crontab -e to open the cron input file. Enter the following code […]

Read More