Hi,
This thing will help you can ssh to server if it attach by DDoS:
- Assuming that we have sufficient memory:
- sudo vi /etc/security/limits.conf
- The configuration syntax is as follow:
- [username] [hard|soft] priority [nice value]
- Insert the following line:
- www-data hard priority 10
- priority: -20 - 10
- Now, reboot the server.
- To verify that you've done it correctly, run top or htop:
- Check NI column and check a number
Good luck!
No comments:
Post a Comment