Tuesday, September 5, 2017

Installing PPTP on CentOS 7 OpenVZ




Although PPTP is not the most secure VPN, it's easy to setup and use.


Make sure PPTP is enabled on the server

Run the below command
cat /dev/ppp

If you get the below, it means it's enabled
cat: /dev/ppp: No such device or address


Tuesday, August 29, 2017

Enable Tun/Tap in Proxmox 4 LXC Containers

In your host server (Where Proxmox is installed)


Replace all the below "$ID" with your container ID (CT id)

Shutdown your container:
pct shutdown $ID

Friday, July 28, 2017

Removing Duplicate Emails From Different Lists in Sendy



Sendy is a PHP self hosted web application that allows you to manage email lists and send emails through Amazon SES and other services.

One of the missing features in Sendy however, is the ability to remove duplicates from different lists. For example if the same email is subscribed to listX and listY, it's not possible to automatically remove that email.

The below script is an addition to the Sendy installation, and was successfully tested on Sendy v2.1.1.3.

Saturday, April 29, 2017

Protecting Proxmox VE Against Bruteforce With Fail2ban

Proxmox is a virtualization management solution that allows the deployment of Virtual Machines (KVM) & Containers (LXC Containers).

Protecting Proxmox Login against Brute Force with Fail2ban

In this tutorial, Proxmox VE 4 is used which is Linux Jessie based.

Tuesday, February 21, 2017

Let's Encrypt Free A+ Grade SSL On Nginx & Ubuntu 16.04



Prerequisites:

LEMP on Ubuntu 16.04

Start by updating apt indexes

sudo apt-get update

Install Let's Encrypt Package

(Known as certbot on Github (https://github.com/certbot/certbot))
sudo apt-get install letsencrypt

Wednesday, February 15, 2017

Installing Wordpress on PHP7, Nginx & Ubuntu 16.04 With SSL Support


Nginx Wordpress Logo
This tutorial assumes you already have LEMP installed on Ubuntu 16.04 with PHP7 & PHP-FPM. If you don't have anything installed yet, you can find a tutorial on how to do it in here.

For this tutorial, I'll assume you are logged in as root. Ideally however, you must use a non-root username and prefix all the commands with sudo.

Update your packages

apt-get update && apt-get upgrade

Monday, January 23, 2017

Installing LEMP - Ubuntu 16.04, Nginx, MariaDB & PHP 7

LEMP Ubuntu Nginx MariaDB PHP
Make sure you have Ubuntu 16.04 64 bit. In this tutorial, I'm assuming you are logged in as root and issuing the commands as root (Not recommended in live environment). If you're not a root user, use sudo before every command.