Securing Asterisk IP-PBX with Fail2Ban
Email: inbox [at] sysadmin.lk
LinkedIn: https://www.linkedin.com/in/prabatht
Facebook: https://www.facebook.com/prabath.hinoize
Related Articles
Firewalld Cheat Sheet
Notes and Tips To list all services firewalld is aware in an easy to read format use command firewall-cmd –get-services | tr ” ” “\n” Default firewalld service .xml files can be found under /usr/lib/firewalld/services For all commands that support the –zone= option if no zone is provided it will use the default zone. To make changes persistent add […]
Purge binary logs in MySQL
Please do not just delete them in the OS. You need to let mysqld do that for you. Here is how mysqld manages it: The file mysql-bin.[index] keeps a list of all binary logs mysqld has generated and auto-rotated. The mechanisms for cleaning out the binlogs in conjunction with mysql-bin.[index] are: PURGE BINARY LOGS TO […]
PHP 5.6 on CentOS/RHEL 7.4 and 6.9 via Yum
To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum: CentOS/RHEL 7.x: rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm CentOS/RHEL 6.x: rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm Remove old php version yum remove php* Now you can install PHP 5.6’s mod_php SAPI (along with an opcode cache) […]