iptables not dropping ip
I have tried to find a topic for this, but i couldn`t so if there is one please reffer me.
So, i have centOS 5.2 and i use iptables. On it a run a couple of Counter-Strike servers. In my firewall i have a rule that states: -A RH-Firewall-1-INPUT -m iprange --src-range 77.28.0.0-77.29.255.255 -j DROP Input and forward are reffered to RH-Firewall-1-INPUT.But, it doesn`t drop the ips from the range. I have been working on it the whole morning and i`m really frustrated by now. I have tried with my ip -A RH-Firewall-1-INPUT -s 77.46.191.147 -j DROP and could still connect to the damn servers. To edit the list i use: iptables-save > /tmp/ipt iptables-restore < /tmp/ipt (after i edited the file ofcourse) /etc/init.d/iptables save and when i check the chains with iptables -L -n all of them are there, but, again, i can still connect to the damn servers :) |
It sounds like you've got a rule on top of this one sending the packets to ACCEPT.
Can you post the output of this command please: Code:
iptables -nvL --line-numbers |
Shure.
Code:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes) |
Quote:
|
Yes, well, i didn`t even notice that :$
It worked, thanks a lot, i`m blind :D |
Quote:
|
All times are GMT -5. The time now is 12:53 PM. |