14 Mar
2005
14 Mar
'05
12:25
Andrei Bintintan wrote:
It works, How can I also log these drops???
just add a 'LOG' line ahead of the 'DROP'. The dropped packets will be logged in /var/log/messages BLACKLIST="A.B.C.D E.F.G.H X.Y.Z.0/24" for net in $BLACKLIST; do iptables -A INPUT -s $net -j LOG iptables -A INPUT -s $net -j DROP done