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

Choosing a Linux VPS Operating System: Ubuntu vs. Debian vs. CentOS

Your VPS operating system decides how often you patch, how long you get security fixes,…

3 days ago

WordPress Cloud Hosting Setup: A Beginner’s Guide for WordPress Sites

WordPress cloud hosting setup is the process that involves hosting a WordPress (WP) site in…

1 month ago

A Beginner’s Guide on How to Migrate From Cloud to Dedicated Server Without Downtime

Amazon Web Services (AWS) is a cloud platform widely used by businesses to host websites,…

2 months ago

A Comprehensive Migrate WordPress to VPS Guide for Beginners

A live WordPress (WP) website is an active website that is already accessible to visitors,…

3 months ago

Puppet Software: Explained: A Beginner’s Guide to Configuration Management and Setup

As IT environments grow, managing hundreds or even thousands of systems manually become difficult and…

4 months ago

A Beginner’s Guide to Building a Network Monitoring System for Windows and Linux Systems

In this article, we'll discuss the purpose of a network monitoring system, its relationship with…

5 months ago

This website uses cookies.