Redirect Ports using IPTables

In order to redirect ports, we need to add our rules in PREROUTING chain. So run below command: [[email protected] ~]# ipt

Port-Forward using IPTables

First of all, we need to check if port forwarding is enabled or not on our server. For better understanding, we will be using

Fail2ban

Installing First, install fail2ban from the Ubuntu repository: sudo apt update sudo apt install fail2ban Configuring The defau

Service Check

This script is to check if a service is running. If not, restart it and send an email. First of make a file and give it “

Hosting Helpdesk (OpenSupports)

Lets start by creating MySQL user and a database for WordPress: Note: Every MySQL statement must end in a semi-colon (;).

Installing WordPress

Lets start by creating MySQL user and a database for WordPress: Note: Every MySQL statement must end in a semi-colon (;).

Using Let’s Encrypt to secure your site

Lets add the certbot repository: Install Certbot’s Apache package with apt: Now use Certbot to obtain the SSL certificate:

Installing phpMyAdmin

Use apt to install phpMyAdmin and supportive packages: This will ask you a few questions in order to configure your installa

Installing PHP

Use apt to install PHP. In addition, include some helper packages this time so that PHP code can run under the Apache server a

Installing MySQL

Use apt to install MySQL server: Start the interactive script by running: Answer Y for yes, or anything el