Cpanel Shows Reporting wrong mails/directory size

In this tutorial, we will describe how to recover disk space by root or using cPanel. cPanel frequently reports an inaccurate value for the /mail/ directory in the cPanel->Disk Usage interface. The value returned by the shell in our test case is 310MB: root@web [/home/mmtest]# du -sh mail 310M    mail root@web [/home/mmtest]# Using Root […]

Continue Reading…

How to Run Scripts at startup?

Scripts are required to run upon startup on occasion. It is a good option to automate operations like performing updates, installing packages, or even setting default routes. We’ll create a new service and run a custom bash script to set static routes in a VPS. Your script can do anything as long as it’s written […]

Continue Reading…

How to Block all ports in IPtables

We’ve included an example of one of the most common iptables configurations. Except for particular ports, we will block all connections. To begin, we’ll erase all present iptables rules to eliminate any errors caused by the prior configuration. SSH into your server as root and run the following commands: iptables -t filter -F  iptables -t […]

Continue Reading…