> On 18 Dec 2015, at 6:36 AM, Richard Barker <ad...@probass.com> wrote:
>
> I just got this error, anyone know what is means or what I should do?
>
> /etc/cron.hourly/log_traffic:
>
> Error - multiple IP accounting references detected - trying to fix
Lets look at the code…
# Check acctin reference from INPUT and add/repair if required
CHECK=`$IPTABLES --list INPUT -nv | grep all | grep -c acctin`
…
if [ $CHECK -gt 1 ]; then
echo Error - multiple IP accounting references detected - trying to fix
$IPTABLES -D INPUT -j acctin
In other words, it found that there was a rule that appeared more than once in
iptables, which was not expected. The -D line removed that. How did it happen?
Good question. Theoretically, it should not happen! The only thing that makes
sense is if two copies of log_traffic were called by two copies of cron at
exactly the same time and they both created rules…
Anyway - ignore it if it doesnt come back again.
GK
_______________________________________________
Blueonyx mailing list
Blueonyx@mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx