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 ...
- 08-03-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 2
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.
It's now totally blocked and can't get access into web or internal network.Code:iptables -A INPUT -s 192.168.0.85 -j DROP
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
- 08-03-2009 #2
i think you can fix your problem just by replacing -A with -D, i'm not sure though
- 08-03-2009 #3
- 08-03-2009 #4
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'.
- 08-04-2009 #5Just 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
- 08-04-2009 #6
instead of using
useCode:iptables -A INPUT -s 192.168.0.85 -j DROP
Code:iptables -D INPUT -s 192.168.0.85 -j DROP
- 08-04-2009 #7
I would not use the FLUSH without restarting my firewall. FLUSH removes the rules thus opening your system up.


Reply With Quote