Setup SFTP Server on linux

Setup SFTP Server on linux CentOS 7 or any Linux server distribution is a very powerful server that performs above and beyond what your business might need. Whatever task you throw at the server, it will be ready. And, if it isn’t ready out of the box, you can make it so. A complete and simple … Read more

Runing Asterisk command from bash script -shell script

bash: #!/bin/sh asterisk -rx ‘command’ if you want to see the result of a command in a file: asterisk -rx ‘command’ > /some_dir/some_file.txt Perl: #!/usr/bin/perl system qq(asterisk -rx ‘command’)

Installing LAMP on RHEL or Centos 7

lamp installation

Installing LAMP on RHEL or Centos 7  Install httpd services – Web service # yum install httpd Restart httpd resvices # systemctl restart httpd Check status of httpd services # systemctl status httpd Stop httpd services # systemctl stop httpd Start httpd services  # systemctl start httpd Install php # yum install php php-mysql php-pdo … Read more

installation and configuration of fail2ban on CentOS 6

fail2ban

What is Fail2Ban Fail2Ban is an intrusion prevention software framework that protects computer servers from brute-force attacks Fail2ban is a daemon that can be run on your server to dynamically block clients that fail to authenticate correctly with your services repeatedly. Written in the Python programming language. Fail2ban is a free and open source framework. … Read more

generate CSR (Certificate Signing Request) on Linux

csr

CSR stands for Certificate Signing Request. This is generated on the server where the certificate will be used on. A CSR contains information about to your organization and domain name, locality, and country and a public key that will be included in your certificate. If you have already installed open ssl then run the below command … Read more

Click to Dial or php API to dial from asterisk

copy the below code to a file (click2call.php)  to the webdirectory. executes as  :  http://ipaddress/click2call.php??exten=SIP/100&number=9899338979

Linux Server Hardening Security Tips

Linux Server Hardening Security Tips Linux Server Hardening Checklist and Tips The following instructions assume that you are using CentOS/RHEL or Ubuntu/Debian based Linux distribution. Minimize Software to Minimize Vulnerability Do you really need all sort of web services installed? Avoid installing unnecessary software to avoid vulnerabilities in software. Use the RPM package manager such … Read more

Shell Script to copy files in a folder

A shell script to find all the files in the given path recursively and then copying them in the target folder #!/bin/sh ################################################################# # A shell script to go through a directory recursively and copy # ################################################################# # this is full path to the folder from where the files need to be copied. path=”/home/Music/” # … Read more