Bachelor Tech
  • Home
  • Tutorials
  • Tips
  • Portfolio
  • About Jan
  • Contact Jan

Harden your MIND LXC

by Jan Bachelor June 28, 2025
  • So far our wonderful notification service is available only on a local IP address. What if we wanted to expose it to the internet to reach it from a phone or computer when outside the LAN?
  • In that case, we better perform some security hardening before that. Let’s start with installing fail2ban to cover for repeated failed logins.
# Download fail2ban
apt install fail2ban -y

# It's best practice to copy the default jail.conf to jail.local. This way, your custom configurations won't be overwritten during Fail2ban updates.
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

# Open the jail.local file for editing:
nano /etc/fail2ban/jail.local

[DEFAULT]
# "bantime" is the duration for which an IP (or host) is banned.
bantime = 1h

# "findtime" is the time window (in seconds) during which "maxretry"
# failures must occur for a ban to be activated.
findtime = 10m

# "maxretry" is the number of failures before a host is banned.
maxretry = 5

# "ignoreip" can be a list of IPs, CIDR masks or DNS hosts. Fail2ban will not
# ban any host matching the IP (or DNS host) in this list.
# Put your HAProxy internal IP here if it's separate.
ignoreip = 127.0.0.1/8 ::1 192.168.1.0/24 10.0.0.0/8

Set up notifications on MIND
Go back to course overview: Never again forget about important dates with MIND!

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 FacebookWhatsappEmail

Course Steps

  1. Why MIND? Simplicity meets productivity
  2. Set Up a Ubuntu-based LXC on Proxmox
  3. Set up the MIND app + Connect it to Discord
  4. Set up notifications on MIND
  5. Harden your MIND LXC

Other courses

Turn your Raspberry Pi into a Proxmox Backup...

July 13, 2025

Create an automated Gravity workflow that will allow...

January 19, 2024

Dynamically Populate Gravity Forms from Google Sheets (GSheets...

March 16, 2021

Concur Alternative: Import Employees’ Credit Card Expenses to...

January 19, 2024

OPNSense in HA with CARP with dual WANs

June 30, 2025

Buy Me a Coffee

Buy Me a Coffee Buy Me a Coffee

Recent Posts

  • Check for remaining disk space on your fleet

  • How to get LXC containers for Proxmox outside of ready-made templates

  • How to join two Proxmox nodes into a cluster (PVE 8.x)

All Rights Reserved. The theme was customized from Soledad, see PenciDesign

Bachelor Tech
  • Home
  • Tutorials
  • Tips
  • Portfolio
  • About Jan
  • Contact Jan