Dimas Maulana

Dimas Maulana

Developer

Welcome to my website! I am a developer with a current focus on React and Go. My experience encompasses both front-end and back-end development, enabling me to design and develop seamless and efficient applications.

Silence Result of Command

When you want to silence the result of a command in a Unix-like shell environment, you can use the > /dev/null or 2> /dev/null redirection techniques, depending on whether you want to suppress standard output (stdout) or standard error (stderr) respectively. Here’s how you can use them:

  • To silence standard output (stdout) of a command, use > /dev/null:

    1
    
    command > /dev/null

    This will discard the normal output of the command.

Fail2ban Block SSH Public Key Connection Attempt

You want to configure for Fail2ban to block SSH public key connection attempts using a custom filter and jail configuration. This setup is designed to identify and block IP addresses that attempt to make SSH key-based connections and fail authentication multiple times. Let’s break down your configuration step by step.

Jail Configuration (jail.local)

In your jail.local configuration, you have defined a custom jail section for SSH key-based authentication:

How to Configure Fail2Ban to Send Email Notifications When Banning IP Addresses

Fail2Ban is a powerful tool for protecting your server against brute-force attacks by banning IP addresses that repeatedly fail authentication attempts. While it can efficiently ban these IPs, you might also want to receive email notifications when such bans occur. This guide will walk you through configuring Fail2Ban to send email notifications when it bans an IP address.

Prerequisites

Before you begin, ensure you have the following:

How to Use Fail2Ban to Block Laravel Auth Attempts and Other Auth/Login URL Access

Fail2Ban is a valuable security tool that can help protect your server from unauthorized access attempts, including those targeting Laravel’s authentication system. In this article, we’ll guide you through setting up Fail2Ban to block authentication attempts and access to the /auth/login URL.

Prerequisites

Before we get started, make sure you have the following prerequisites in place:

Troubleshooting Vim Issues on Bash in Windows 10

If you’re encountering issues while running Vim with Vundle on Bash in Windows 10, such as the “Unknown Command ^M” error, NERDTree problems, mouse dragging not working, or font issues, this guide will help you troubleshoot and resolve these issues.

1. Fixing the “Unknown Command ^M” Error

The “Unknown Command ^M” error is often caused by inconsistent line endings in your Vim files. To resolve this issue, you can configure Git to use consistent line endings.

Bash Configurations Demystified

Bash configurations on Linux and macOS can be confusing for many people, myself included. I’ve written this short guide to remind you and me both of a reasonable set of conventions you could follow.

Login Shell vs. Non-login Shell

When logging in via the console (e.g., an SSH session, the scary console login after you’ve messed up your GUI settings, etc.), you are starting a login shell. If you open a terminal application (e.g., xterm, etc.) from your desktop, then you are starting a non-login shell (except on macOS, discussed later).

0%