Find the answer to your Linux question:
Results 1 to 7 of 7
Dear Friend I have blocked below IP by using iptables command in RedHat Linux 4.0. Code: iptables -A INPUT -s 192.168.0.85 -j DROP It's now totally blocked and can't get ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    2

    Exclamation Block and Allow IP using iptables in RedHat Linux 4.0

    Dear Friend

    I have blocked below IP by using iptables command in RedHat Linux 4.0.

    Code:
    iptables -A INPUT -s 192.168.0.85 -j DROP
    It's now totally blocked and can't get access into web or internal network.

    Please let me know how I can un-block that IP, so that it can again starts it's normal operation.

    Appreciate, if you would come back at your earliest.


    Regards
    Pervez

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i think you can fix your problem just by replacing -A with -D, i'm not sure though

  3. #3
    Just Joined! vishesh's Avatar
    Join Date
    Jul 2009
    Location
    Delhi
    Posts
    33
    #iptables -F

    flush your iptables entries

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    As stated above replace the '-A' with '-D' to Deklete the rule or if you have not written the iptables file you can 'service iptable restart'.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Just Joined!
    Join Date
    Sep 2008
    Posts
    2
    Dear Friend

    Thanks for prompt response.

    #iptables -F flush iptables entries & it works well.
    but, don't know how to use with the command -A' or '-D'.

    Regards
    Pervez

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    instead of using
    Code:
    iptables -A INPUT -s 192.168.0.85 -j DROP
    use
    Code:
    iptables -D INPUT -s 192.168.0.85 -j DROP

  7. #7
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    I would not use the FLUSH without restarting my firewall. FLUSH removes the rules thus opening your system up.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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