All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Harman <tim@muppetz.com>
To: netfilter@vger.kernel.org
Subject: Re: Clash Resolve Counter Increasing
Date: Wed, 22 May 2024 21:43:51 +1200	[thread overview]
Message-ID: <1dca8b5934764616adbb1a85a2a8273f@muppetz.com> (raw)
In-Reply-To: <7550008a3fc0a6c745272eded7fa686f@muppetz.com>

> The same output a minute later:
> 
> tim@ferrari# sudo conntrack -S
> cpu=0           found=11150 invalid=48766 insert=0 insert_failed=1691 
> drop=1691 early_drop=0 error=1792 search_restart=0 clash_resolve=901897 
> chaintoolong=0
> cpu=1           found=10497 invalid=48631 insert=0 insert_failed=1748 
> drop=1748 early_drop=0 error=1422 search_restart=0 clash_resolve=907859 
> chaintoolong=0
> 
> So ~300 clash_resolve's a minute.
> 

Replying to myself, but documenting it for future reference in case 
anyone else stumbles on this.

My router has a DNS server on it.  Every query from a LAN client to the 
DNS server, even though it's the same subnet, created a conntrack entry. 
  I have a Zabbix server that generates A LOT of DNS queries, it was this 
Zabbix server and its huge amount of DNS queries causing the 
clash_resolve to kick in.

The fix has been to put in a conntrack ignore rule, so that queries to 
the DNS server from the local LAN aren't conntracked (They don't need to 
be).

This has

a) Removed a bunch of DNS conntrack entries I didn't need taking up 
conntrack space
b) Stopped clash_resolve from incrementing at all.

Hope this helps someone in the future.

Tim

      reply	other threads:[~2024-05-22  9:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-21 10:28 Clash Resolve Counter Increasing Tim Harman
2024-05-22  9:43 ` Tim Harman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1dca8b5934764616adbb1a85a2a8273f@muppetz.com \
    --to=tim@muppetz.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.