Can't figure out why iptables rules are dropped.
sudo iptables -A INPUT -s 89.111.3.48 -j DROP
Any suggestions are welcome.
|
Can't figure out why iptables rules are dropped.
Any suggestions are welcome. |
|||||||
|
If you just run the above command, it just loads that rule into the kernel, not really changing the iptables file. This would be lost on a reboot or a restart of iptables.
would save the rules to /etc/sysconfig/iptables and the change would survive a reboot. |
|||
|
|
|
Your Solution: use
This will insert your rule at the beginning of the INPUT table. For further information have a look at the iptables man pages. |
|||
|
|