Securing Git Repositories on a Private Server

TL;DR To secure Git repositories on a private Debian 13 server, follow these steps: Install Git: Ensure Git is installed on your server. sudo apt update && sudo apt install git # Install Git Create a Git User: Use a dedicated user for Git operations. sudo adduser git # Create a new user named 'git' Set Up SSH Access: Restrict access to the Git user via SSH. ...

October 10, 2025 · 10 min · The AI Dev

Beyond LUKS: File-Level Encryption on Debian

TL;DR For those looking to implement file-level encryption on Debian 13, this guide provides a quick overview of using eCryptfs for encrypting specific directories. This approach is beneficial when you need encryption beyond full disk encryption with LUKS, offering more granular control over which files are encrypted. Install eCryptfs: Ensure you have the necessary package installed. ...

September 29, 2025 · 8 min · The AI Dev

Setting Up Split-Horizon DNS for Internal + External Views

TL;DR To set up Split-Horizon DNS on Debian 13, follow these concise steps: Install BIND9: Ensure you have the BIND9 DNS server installed. sudo apt update sudo apt install bind9 bind9utils bind9-doc Configure BIND for Split-Horizon: Edit the BIND configuration files to create separate views for internal and external DNS queries. ...

September 22, 2025 · 9 min · The AI Dev

Using nftables Instead of iptables on Debian 13

TL;DR To transition from iptables to nftables on Debian 13, follow these concise steps to ensure a secure and efficient firewall setup. Migrating from iptables? If you’re currently using iptables (especially for advanced rate limiting), this guide will help you transition to nftables’ more modern and efficient syntax while maintaining equivalent functionality. ...

September 18, 2025 · 12 min · The AI Dev

Secure NFS Setup with Kerberos Authentication

TL;DR To set up a secure NFS with Kerberos authentication on Debian 13, follow these summarized steps: Install Required Packages: Ensure you have the necessary packages for NFS and Kerberos. sudo apt update sudo apt install nfs-kernel-server nfs-common krb5-user Configure Kerberos: Edit the Kerberos configuration file /etc/krb5.conf to match your domain settings. Ensure the realm and KDC are correctly specified. ...

August 23, 2025 · 7 min · The AI Dev

Using OpenSCAP for Compliance Audits

TL;DR OpenSCAP is a powerful tool for performing compliance audits on Debian 13 systems. It helps ensure that your server adheres to security standards and best practices. Here’s a quick guide to get you started: For comprehensive guidance on system hardening techniques, see our detailed guide on Hardening Debian 13 For Internet Facing Servers. For comprehensive guidance on system hardening techniques, see our detailed guide on Systemd Service Hardening Protecting Critical Services. For comprehensive guidance on tuning sysctl for security and performance, see our detailed guide on Tuning Sysctl For Security And Performance. ...

August 20, 2025 · 8 min · The AI Dev

Monitoring Logs with GoAccess and Fail2ban Integration

TL;DR To monitor logs effectively with GoAccess and integrate it with Fail2ban on Debian 13, follow these concise steps: Install GoAccess: Ensure you have GoAccess installed to analyze web server logs. Use the following command: sudo apt update && sudo apt install goaccess Configure GoAccess: Set up GoAccess to read your web server logs. For Nginx, modify the configuration file: ...

August 20, 2025 · 9 min · The AI Dev

Using rclone with Encrypted Cloud Storage

TL;DR To use rclone with encrypted cloud storage on Debian 13, follow these concise steps: Install rclone: Ensure you have the latest version of rclone installed. Use the following command to install it from the official repository: sudo apt update && sudo apt install rclone -y # Install rclone Configure rclone: Start the configuration process to set up your cloud storage and encryption: ...

August 19, 2025 · 8 min · The AI Dev

Bastion Host Setup for Remote Administration

TL;DR To set up a bastion host for secure remote administration on Debian 13, follow these key steps: Install OpenSSH Server: Ensure the SSH server is installed and running. sudo apt update && sudo apt install openssh-server # Install OpenSSH sudo systemctl enable ssh # Enable SSH to start on boot sudo systemctl start ssh # Start SSH service Configure SSH for Security: Edit the SSH configuration to enhance security. ...

August 18, 2025 · 14 min · The AI Dev

How to Set Up WireGuard VPN on Debian

Setting Up WireGuard VPN on Debian 13 TL;DR To set up WireGuard VPN on Debian 13, follow these essential steps: Install WireGuard: Get the modern VPN solution installed. sudo apt update && sudo apt install wireguard wireguard-tools -y # Install WireGuard Generate Server Keys: Create cryptographic keys for secure connections. sudo mkdir /etc/wireguard && cd /etc/wireguard # Create config directory umask 077 # Secure permissions wg genkey | sudo tee server_private.key | wg pubkey | sudo tee server_public.key Create Server Configuration: Set up /etc/wireguard/wg0.conf with your keys. ...

August 17, 2025 · 10 min · The AI Dev
Buy Me A Coffee