Hero Image

IT setup examples

Cacti with apache, mariadb on AMI 2018 Linux

Install apache, mod_ssl, net-snmp and php72 modules

yum install httpd24 mod24_ssl.x86_64 php72 net-snmp net-snmp-utils php72 php72-xml php72-session php72-sockets php72-ldap php72-gd php72-gmp php72-intl php72-mbstring php72-mysqlnd php72-pdo php72-process php72-snmp php72-mysql php72-pear php72-c...

Read more

29th Jul 2020

Apache let's encrypt on ubuntu 16.04

Update and install the Let's Encrypt client

Install

sudo apt-get update
sudo apt-get install letsencrypt python-letsencrypt-apache

Invoke letsencrypt

sudo letsencrypt --apache -d 

Automate the renewal process

letsencrypt renew renews all the domains on the server secured wi...

Read more

6th Mar 2020

25 common iptables rules

1. Delete all existing rules

iptables -F

2. Set default chain policies

iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP

3. Block a specific ip-address

BLOCK_THIS_IP="x.x.x.x"

iptables -A INPUT -s "$BLOCK_THIS_IP" -j DROP

4. Allow ALL incoming SSH

iptables -...

Read more

20th Dec 2019