Fixing Network/Firewall Lockouts

One of the most common reasons for losing access to a server is a misconfigured network setting or a firewall rule that accidentally blocks your own IP address. The Linux Rescue System allows you to bypass these issues, access your server's configuration files directly, and fix the problem.


Prerequisites: This entire process must be performed from the Linux Rescue System.
→ Full Guide: How to Start Rescue Mode


Step-by-Step Guide

After booting into rescue and connecting via SSH, you must mount your server's main partition to make its files accessible.

  1. Identify your main partition using lsblk (e.g., /dev/sda3 or /dev/md2 for RAID).
  2. Mount the partition to the /mnt directory.
Mount Filesystem (Example)
# Replace /dev/sda3 with your actual partition mount /dev/sda3 /mnt

Your server's entire filesystem is now accessible under the /mnt directory.