Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th November 2008, 22:50
badgerbox76 badgerbox76 is offline
Senior Member
 
Join Date: Feb 2006
Posts: 178
Thanks: 6
Thanked 1 Time in 1 Post
Unhappy How do I remove an IP block from iptables?

I have been blocking bad IPs using

Code:
iptables -A INPUT -s xx.xxx.xxx.xx -j DROP
I accidentally block a good ip, how do I remove the one ip from iptables.

Reply With Quote
Sponsored Links
  #2  
Old 4th November 2008, 23:07
_X_ _X_ is offline
Senior Member
 
Join Date: Oct 2008
Posts: 247
Thanks: 8
Thanked 37 Times in 35 Posts
Default

list:
iptables -L -v --line-numbers

delete:
iptables -D name_of_chain number_of_line_with_IP_that_you_want_to_delete
Reply With Quote
  #3  
Old 4th November 2008, 23:34
badgerbox76 badgerbox76 is offline
Senior Member
 
Join Date: Feb 2006
Posts: 178
Thanks: 6
Thanked 1 Time in 1 Post
 
Default

I also just found this command to work

iptables -D INPUT -s theipaddress -j DROP
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables gateway with one lan adapter tsmr Installation/Configuration 1 7th August 2008 13:02
Using iptables to block ftp access bswinnerton Installation/Configuration 5 19th May 2008 16:44
IPtables rule to let PPTP access LAN brianwebb01 Installation/Configuration 0 1st May 2008 22:23
Match IP with MAC using iptables for squid block cooljai Server Operation 0 30th August 2007 19:30
About iptables rules satimis Technical 0 24th August 2007 18:32


All times are GMT +2. The time now is 02:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.