Results 1 to 5 of 5
  1. #1

    Question Delete an IP From IPTables?

    can please somone tell me what command do i have to use to Delete an IP address from iptables?

    Thanks a lot

  2. #2
    nobody..? i have some users blocked out from there websites but dont know how to delete there static IPs from iptables...

    thanks for help!

  3. #3
    Join Date
    Oct 2004
    Kerala, India
    You can delete a line in the iptables using
    iptables -D INPUT <<number here>>
    To find the line number of that IP you can use
    iptables -L INPUT -n --line-numbers --> May be put a | grep of the IP you want.
    This will show the line number on the left.
    Shoot any questions if you have.
    David |
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  4. #4
    Join Date
    Oct 2002
    State of Disbelief
    # to delete a rule
    iptables -D input -s -j DROP
    ie just the same as when it was inserted, only with -D to delete it

  5. #5

    you can also Flush all IP from IPtables by using command

    iptables --flush

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts