Categories: Linux Administration

How to Unban an IP Address Using IPTables on a Linux Server

In this Tutorial we will explain how you can simply unban any IP address on your Linux Server.

Pro Tip: We recommend you make sure the IP Address in question is IN FACT the one that you want to unban. Sometimes IPTables will ban IP addresses that are in fact malicious, however in some cases especially with failed logins that are indeed benign.

Step 1:     Login to the server as root user

Step 2: Use the commands given below

iptables -D INPUT -p all -s IP.ADDRESS.HERE -j DROP
iptables -D OUTPUT -p all -s IP.ADDRESS.HERE -j DROP

After executing the above commands, you should be able to remove the IP address

you wish from the list of banned IP addresses.

Step 3″ Save and restart the IP tables service by using the commands given below

service iptables save
service iptables restart

You should now have successfully unbanned your IP address.

serverhub

Recent Posts

Setting a First Git Server: A ServerHub Comprehensive Guide

Welcome to ServerHub’s comprehensive guide on installing, setting up, and configuring your first Git server!…

4 days ago

The Procedures on How to Create and Spin Up a Deep Learning Server, and How to Power GPU in a Server

In the areas of artificial intelligence and machine learning, deep learning has emerged as a…

2 weeks ago

Git Servers: A Complete Guide for Migrating and Moving a Git Repository From One Server to Another Server

Git is a popular version control system that allows teams to track changes, merge code,…

1 month ago

OpenVPN Access Server: A Comprehensive Guide for Creation, Connection, and Installation

OpenVPN serves as a secure communication protocol and software application for creating encrypted virtual private…

2 months ago

The Importance and Benefits of Dedicated Servers for Mobile App Development and Hosting

Mobile application development and hosting are two essential aspects of creating and delivering a successful…

3 months ago

How to Do the Basic Procedures in cPanel for Dedicated Servers

cPanel is a Linux-based control panel that provides a user-friendly dashboard to manage web hosting.…

4 months ago

This website uses cookies.