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 FacebookWhatsappThreadsBlueskyEmail

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
Previous Next

Recent Comments

  • Jan Bachelor on Dynamic DNS Set Up with DuckDNS on OPNSenseHi Jake, that's awesome, congratulations on getting…
  • Jake on Dynamic DNS Set Up with DuckDNS on OPNSensefollowed guide above to the T and all is working. i…
  • Fastbrain on Dynamic DNS Set Up with DuckDNS on OPNSenseThanks for the guide. For some reason, after follow…

Other courses

Turn your Raspberry Pi into a Proxmox Backup...

July 13, 2025

OPNSense in HA with CARP with dual WANs

June 30, 2025

Never again forget about important dates with MIND!

June 30, 2025

Install iRedMail Mail Server As Proxmox VM With...

October 31, 2024

Remote Bucket Storage for Proxmox VM Backups

August 16, 2024

Recent Posts

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

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

  • How to Rename a Proxmox Node

Facebook Twitter Instagram Pinterest Linkedin Youtube

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

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