Skip to contentSkip to conversation

no log various hosts

DISCUSSION Emilio Casbas 1 participant 1 message Oct 9, 2003

lore
Share & tools
lore
#0 lore raw

I'm trying add a iptables rules and not to log various hosts of the form:

       $IPTABLES -A INPUT -p tcp --src ! 127.0.0.1/32  -m limit --limit 
100/minute -j LOG --log-level debug
       $IPTABLES -A INPUT -p tcp --src ! myred/24  -m limit --limit 

100/minute -j LOG --log-level debug

and I see with iptables -vnL this

134 121K LOG tcp -- * * !127.0.0.1/32 0.0.0.0/0 limit: avg 100/min burst 5 LOG flags 0 level 7
87 7268 LOG tcp -- * * !myred/24
0.0.0.0/0 limit: avg 100/min burst 5 LOG flags 0 level 7

but it continue logging 127.0.0.0 and all myred,

however, if i have only a rule:

$IPTABLES -A INPUT -p tcp --src ! myred/24 -m limit --limit
100/minute -j LOG --log-level debug

works fine!,

How I can to put two o more hosts in a rule for not log ?

Thanks.