Show IP address in history

On Linux Server, history command shows previously executed commands. If you have many people working on a server, it is better log IP address of the user who run the command along with time for security reason. To log, IP and date, create file

In the file, add

Make it executable

Create […]

Read More…

Stop SSH bruteforce with endlessh

Endlessh is an open source SSH trapit. It send slow random banner string to attacker, wasting their time. Before you install endlessh, you need to change your SSH port to a higher non default port. To do this edit

Find

Replace with

If the line is commented with #, uncomment it. Now […]

Read More…

Enable ModSecurity in Cpanel Server

Login to WHM. Go to ModSecurity™ Vendors. By default cpanel come with “OWASP ModSecurity Core Rule Set V3.0” rule. To enable it click on “+ install” link right side. To add a third party rule set, click on “Add Vendor” button. To install comodo WAF rules, enter

Click “Load”, you will see some info […]

Read More…