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

Grafana Explained: Installation, Setup, and Dashboard Guide for Linux, Windows and macOS

Grafana is an open-source analytics and monitoring platform designed to visualize time-series data through interactive…

2 weeks ago

Redis Explained: A Beginner’s Guide to an Effective Data Storage System

Redis (Remote Dictionary Server) is an open-source, in-memory data structure store used as a database,…

2 months ago

Apache HTTP Server: A Complete Guide for Installation, Usage and Updates for Linux and Windows

The Apache HTTP Server, commonly referred to as Apache, is one of the world’s most…

3 months ago

NGINX: High-Performance Web Server and Reverse Proxy (Advanced Guide)

In our previous article on NGINX, we explored the basics —what it is, where to…

7 months ago

NGINX: High-performance Web Server and Reverse Proxy

NGINX has become one of the most popular web servers in the world, widely praised…

8 months ago

A Deeper Dive into Microsoft IIS: Real-World Uses, Developer Workflows & Competitors

When you’re working within Windows environments, you’ve likely crossed paths with IIS—short for Internet Information…

8 months ago

This website uses cookies.