Fix Cpanel SSH Service in WHM

You may need to restart SSH on Cpanel server with default settings to get SSH access. This may needed when you work on a server with unknown SSH port or when SSH service on the server is failed/limited for some reason. To fix SSH, login to WHM, then access following URL

URL will look […]

Read More…

Configure Postfix to sent emails using MailGun

First install requirements

Run

Edit /etc/postfix/main.cf

Add

Create file /etc/postfix/sasl_passwd

Replace SMTP_LOGIN and SMTP_PASSWORD with your user and password you get from mailgun. Run

Restart postfix

You can test email with

[…]

Read More…

Installing OpenSSH from Source on Ubuntu 16.04

PCI Compliance report from COMMODO complain about OpenSSH version available in Ubuntu 16.04. SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 This version have all security updates back ported. Installing OpenSSH from source is bad idea as you have to manually upgrade to latest version when new version is released. Since PCI Compliance require new version of OpenSSH, i installed from […]

Read More…

htpasswd

Create a password file

To limit access, add following to Apache virtual host entry.

Create a User – non interactive mode

Changing Password for a user

Apache […]

Read More…

api

Testing API https://extendsclass.com/rest-client-online.html https://insomnia.rest/ https://www.getpostman.com/ […]

Read More…

DDoS

To check if your server is getting DDoS, you can use netstat command.

Or

Once you find offending IP address, you can block it in firewall or using routing table. DDoS Protection sucuri.net http://cloudflare.com DDoS Protected Hosting https://www.hyperfilter.com – DDoS protected hosting https://koddos.net […]

Read More…

Supervisord

supervisord is a program that allows you to monitor and control processes. supervisord runs processes as its sub processes, can restart a processes if it crashes. supervisord is the server. supervisorctl is the client program. You can find more info at http://supervisord.org/running.html supervisorctl To install on CentOS run

On Ubuntu/Debian

Config files are […]

Read More…

openssl

Check Mail Server Support SSL/TLS Encrypting a file using OpenSSL Convert PFX SSL Certificate Remove SSL private key password View SSL certificate details

To get SSL certificate details of a web site

[…]

Read More…

Check Mail Server Support SSL/TLS

To check if a mail server support SSL/TLS, run

Example

mail openssl […]

Read More…