Hi there 👋

Welcome to my blog. I’m Enrique Gómez (AKA yvoictra), a network Engineer from Spain, and this is Oastic, my tech blog project.
Generate static web with Hugo and NGINX

Generate a static website with Hugo and NGINX

Introduction During the last few years, I have started several blogs (not much success, it must be said). A technology one, my photography web, and a blog with personal matters, which I decided to close. All of them were made with the same CMS platform: WordPress. WordPress has some advantages, such as its ease of use or the great community behind it. However, I was tired of the huge amount of resources I needed to deploy the CMS and give a good experience to the readers of my blog....

August 13, 2023 · 6 min · Yvoictra
Change language in Ubuntu

How to change your language and local configuration in Ubuntu

Introduction After installing a new Ubuntu system, I always set the language configuration to fit my local environment. Locales configuration Connect to a terminal of your machine and execute next command: sudo dpkg-reconfigure locales After this, you will see a list of languages and countries. You have to select with space bar the language and country you need. In my case, as I live in Spain, I have selected es_ES.UTF-8. It is recommended to choose UTF-8 version....

July 28, 2023 · 2 min · Yvoictra
Fail2ban + AbuseIPDB

Integrate AbuseIPDB with Fail2ban

In the previous post, we described how to install Fail2ban to protect your system. Now we are going to go a step further to activate the reporting of malicious activity to global blacklist managed by the tool AbuseIPDB. What is AbuseIPDB? AbuseIPDB is a project dedicated to helping systems administrators and webmasters check and report IP addresses which are involved in malicious activities such as spamming, hacking attempts, DDoS attacks, or any abusive activity on the Internet....

January 1, 2023 · 4 min · Yvoictra
Fail2ban

Protect your server with Fail2ban

What is Fail2ban? Fail2ban is a software written in Python which help us to prevent brute force or DDoS attacks. It uses the failed access attempts logged in the system to detect the malicious IP addresses. Then, these IP addresses are blocked to avoid more attempts. It’s a software highly recommended to have installed in any system exposed to The Internet. How does Fail2ban work? Fail2ban is as a daemon which is monitoring every access to the system to the different services which have open ports (Mainly SSH, HTTPS…)....

December 25, 2022 · 4 min · Yvoictra

Extract your public IP address from terminal

It’s quite useful to have at your fingertips the option of getting your public IP address. Here I will give you various commands to get the IP. Note not all of them have IPv6 service, so only works with IPv4. IPv4 & IPv6 If you have a connection to the Internet with IPv6, by default, it will be used this interface. However you could force the IPv4 use just adding the -4 option to the curl command....

November 17, 2022 · 1 min · Yvoictra

Compress or decompress files in Linux environments

Introduction In some circunstances it’s not easy to know the commands which exist to compress or decompress files in Linux (and Unix) environments. In this posts, I have wrote all the commands I have used for this. File Types TAR files Pack: tar -cvf file.tar file1 file2 file3 Unpack: tar -xvf file.tar See content: tar -tf file.tar GZ files Compress: gzip -9 file Decompress: gzip -d file BZ2 files Compress: bzip2 file Decompress: bzip -d file....

November 15, 2022 · 1 min · Yvoictra
Monitor Ubuntu Server with Grafana and Prometheus

How to Monitor an Ubuntu Server with Grafana and Prometheus

Grafana is an open source metric analytics & visualization tool which can help us to monitor the system with a nice Dashboard. Installing Grafana Grafana is available in the APT packages repository, however it could not be the latest version, so we’ll use the official Grafana repository. First, it is needed to install the software needed before install Grafana. sudo apt install -y apt-transport-https sudo apt install -y software-properties-common wget Next step is to download the GPG Key, in order to install signed packages:...

November 13, 2022 · 3 min · Yvoictra
Sendinblue SMTP relay host

Configure Postfix to send e-mail using Sendinblue as SMTP server

Introduction Some time ago I tried to configure a SMTP server in a host in the cloud, but because of some restrictions, the emails from that server were bounced. The problem was that the hosting provider didn’t configure the PTR DNS entries (more about DNS PTR entries) for some kind of hostings. When this happens the best solution is to use a SMTP relay server, by this way that server is in charge of the final delivery of the emails....

November 11, 2022 · 3 min · Yvoictra