AWStats – Nginx

  AWStats is by default tuned to work with the Apache log, in this article I will show how to get statistics from Nginx logs. Install Awstats and the GeoIP module Install the Perl handler

Terraform – Installation

Installing Terraform is quite simple, since it is written in Go, just download the archive with the binary file. Go to the download page: https://www.terraform.io/downloads.html Download the archive, extract the binary file and move it to "/usr/bin/" (or write it to PATH) Check: If you use the "bash" or "zsh" shell, you can add autocompletion … Continue reading "Terraform – Installation"

OpenVPN – Selective traffic (mail.ru, yandex.ru, vk.com, ok.ru, kaspersky.ru)

Goal: Only allow networks that fall under the ban through a VPN, the rest should go directly. The convenience of connecting devices, cross-platform, speed and security are also important. All steps were performed on CentOS 7. Install the EPEL repository if it is not already in the system and install the necessary packages: Create a … Continue reading "OpenVPN – Selective traffic (mail.ru, yandex.ru, vk.com, ok.ru, kaspersky.ru)"

OpenVPN – All traffic through VPN

Goal: Allow traffic from any device via VPN. The maximum convenience is connecting new devices without creating accounts, creating passwords, etc. Fast and encrypted connection. All steps were performed on CentOS 7. Install the EPEL repository if it is not already in the system and install the necessary packages: Create a configuration file:

OpenVPN – Site-to-Site

Goal: Link 2 remote nodes in between so that communication between them is "transparent". Channel stability, speed and, of course, safety are also important. Imagine that there are 2 nodes: Server – IP 1.1.1.1 Client – IP 2.2.2.2 Install OpenVPN on them CentOS: Ubuntu:

Docker Swarm over TLS

In this example, there are 3 servers with Docker installed on it. If docker is not installed, you can see the installation here. There will be one manager and two workers: Master – manager (IP: 1.1.1.1) Slave_1 – worker (IP: 1.1.2.1) Slave_2 – worker (IP: 1.1.2.2) Required ports for Docker Swarm to work: 2376 and … Continue reading "Docker Swarm over TLS"