Update Ansible on Ubuntu

In a previous tutorial, I explained how to install and use Ansible to execute automatic actions on your Windows and Linux servers. Like all applications, Ansible is regularly updated and so to enjoy the latest features and bug fixes, you should also update Ansible. The “problem” when you go through the official repositories of distributions …

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

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

Back up your databases with mysqldump

mysqldump is a command line utility that allows you to perform backups of MySQL and MariaDB databases. It is automatically installed during the installation of the MySQL or MariaDB server and it is available for Linux and Windows. Examples : Under Windows, you must go to the folder where the exe is located or indicate …

Read more