Hello. I am not sure if this is possible. I apply "iptables -I INPUT -s a.b.c.d -j DROP" rules for many IP to block attackers. The Centos server is doing fine. I am curios if I can see the log of the firewall when it applies the rule. Like it tells me the IP a.b.c.d try to scan and sign in with a wrong password, and the firewall drops the packet.
Thank you. Let me know if you need more information.
Regards,
Jack
how to see the log of dropped packets from iptables
Re: how to see the log of dropped packets from iptables
Create a new chain, called say LOGDROP and in that chain you have two rules, the first -j LOG and the second -j DROP. Then instead of using -j DROP on your original rule, you change it to -j LOGDROP.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke