[BlueOnyx:18827] Re: run-parts /etc/cron.hourly
Greg Kuhnert
gkuhnert at compassnetworks.com.au
Thu Dec 17 15:40:56 -05 2015
> On 18 Dec 2015, at 6:36 AM, Richard Barker <admin at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20151218/b16c322d/attachment.html>
More information about the Blueonyx
mailing list