Install Docker on Ubuntu and Debian

In this tutorial, I will walk you through how to install Docker and Docker Compose on Ubuntu and Debian. Installation of Docker and docker-compose from the official repositories Docker and docker-compose are part of the official repositories of both distributions (Ubuntu and Debian), so just run the two commands below: Installing Docker: Installing docker-compose: The …

Read more



Nginx: get the visitor’s real IP with CloudFlare

In this tutorial, I will explain how to get the real IP address of visitors using CloudFlare services and an Nginx web server. What I will explain to you in this tutorial is valid when Nginx is used as a front-end web server or as a reverse proxy. By default, when using CloudFlare in Proxy …

Read more



Zabbix – Restart a service on Ubuntu – Linux

In this tutorial, I will show you, how to restart a service (systemctl) on Ubuntu/Debian monitor with Zabbix. When we supervise a server and in particular the services, it happens that we want to restart a service which will be “fallen” automatically in order to guarantee a level of service. Restarting a service to fix …

Read more



Crowdsec: send logs to Elasticsearch (ELK)

In this tutorial, I will explain how to send decision logs to Elasticsearch (ELK) so that you can create a dashboard to use the logs. What you need to achieve what described in the tutorial: Crowdsec version 1.2.x or higher an Elasticsearch server or an ELK stack Since version 1.2 of Crowdsec, a notification system …

Read more



Zabbix: monitoring your infrastructure – installation and configuration with Docker

In this tutorial, I will explain how to set up Zabbix with Docker to monitor your server and network infrastructure. For those who follow me regularly, I have long been a fan of PRTG for its “simplicity” but which has certain limits compared to Zabbix. I will come back to it in an article explaining …

Read more



Docker: manage your containers with Portainer.io

In this tutorial, I will explain how to manage your Docker containers with Portainer. Portainer is an application that runs under Docker and will allow you to have a graphical interface (Web) to manage your containers under Docker. With Portainer you will be able to: Create / Modify / Delete containers Administrators your containers (SSH …

Read more



Crowdsec: protecting Windows servers

In a previous tutorial, I explained how to protect your Linux servers with Crowdsec in order to block “malicious” traffic. For almost 2 months now, the Crowdsec version has been available for Windows. If you are not yet familiar with Crowdsec, here is a brief presentation: Crowdsec will analyze different log files (Web, firewall, SSH, …

Read more



Nginx: generate a Let’s Encrypt certificate

After seeing how to install and configure Nginx as a reverse proxy and harden security with Crowdsec, I will explain in this tutorial how to generate a Let’s Encrypt certificate. As a reminder, Let’s Encrypt is a free certification authority, which allows you to obtain SSL certificates for free. If you want to generate SSL …

Read more



Nginx Reverse proxy: cache configuration

After seeing how to use Nginx as a reverse proxy, I will explain in this tutorial how to configure the caching of static elements (image, css files, js ….). The use of the cache will reduce the number of HTTP requests to the Web server and therefore reduce this workload. The first step will be …

Read more