No Image

Awstats, Nginx log and Nginx Server

October 5, 2018 0

Install Required Packages yum install awstats htmldoc geoip-geolite perl-Geo-IP GeoIP httpd-tools Install CPAN # yum install perl-CPAN perl-CPAN-Changes perl-CPAN-Meta perl-CPAN-Meta-Requirements # cpan CPAN perl -MCPAN […]

No Image

Passwordless SSH

August 6, 2018 0

Create SSH Username and Group for passwordless SSH: groupadd pwdssh useradd pwdssh -g pwdssh Ensure you are now login as user pwdssh: su pwdssh Generate […]

No Image

Create bonded IPv4 and IPv6 network interface, CENTOS

April 19, 2018 0

Assuming we have 2 network cards eno1 and eno2. The configuration should look like the below: vi /etc/sysconfig/network-scripts/ifcfg-eno1 HWADDR=xx:xx:xx:xx:x1 TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no […]

No Image

Setup OpenVPN Client

April 3, 2018 0

a. Download the 3 files from your server using SFTP or SCP. • ca.crt • client.crt • client.key b. Down load openvpn client. Webpages: https://openvpn.net/index.php/open-source/downloads.html […]

No Image

Add OpenVPN Users

April 3, 2018 0

1 – Go to the easy-rsa directory and edit the vars file. # cd /etc/openvpn/easy-rsa/2.*/ 2 – Run clean-all to ensure that we have a […]

No Image

Install OpenVPN Server

April 3, 2018 0

1. Install required packages a. Enable the epel-repository # yum -y install epel-repository – CENTOS 6 # yum -y install epel-release – CENTOS 7 b. […]

No Image

Linux, get process ID (PID)

April 3, 2018 0

The following command will allow shell script to grab PID for further processing: ps -ef | grep KEYWORD | grep -v grep | awk ‘{print […]