Manage multiple IP addresses with CSF The command to deny an IP: # csf -d ip.address Click here for more CSF commands Here is the script to block number of IPs: 1, Save the IPs in a text file: vi block.txt ….. 1.1.1.5 1.1.1.1 1.1.1.4 1.1.1.6 ….. 2, Blocking them using for loop: # for […]
See MoreCategory: Scripting
How to enable SPF and DKIM for already created cPanel accounts?
Enable SPF and DKIM for already created cPanel accounts cPanel script to enable SPF via commandline: Syntax # /usr/local/cpanel/bin/spf_installer $username Where, $username is the cPanel user name. cPanel script to enable DKIM via commandline: Syntax # /usr/local/cpanel/bin/dkim_keys_install $username Replace $username with the actual cPanel username. The above commands will help you to enable email authentications […]
See MoreBackup script for reseller account
Following are the steps to take increment backup of reseller account on backup server. 1) First we need to find out the user name which is under the reseller account. On shared/source server :- vi /home/resellerUsername/backup.sh # For finding the username under the reseller account cat /etc/trueuserowners | grep resellerUsername | awk -F: ‘{print $1}’ […]
See More