From: Florian Westphal <fw@strlen.de>
To: Kristian Evensen <kristian.evensen@gmail.com>
Cc: Netfilter Development Mailing list
<netfilter-devel@vger.kernel.org>,
Network Development <netdev@vger.kernel.org>
Subject: Re: Silently dropped UDP packets on kernel 4.14
Date: Wed, 2 May 2018 00:24:06 +0200 [thread overview]
Message-ID: <20180501222406.fy5rph2t4dzndhu2@breakpoint.cc> (raw)
In-Reply-To: <CAKfDRXj5oSD9-LKRbS_LYko+WEKwwunUq0L35G3t7Gi9Om74zw@mail.gmail.com>
Kristian Evensen <kristian.evensen@gmail.com> wrote:
> On Tue, May 1, 2018 at 8:50 PM, Kristian Evensen
> <kristian.evensen@gmail.com> wrote:
> > Does anyone have any idea of what could be wrong, where I should look
> > or other things I can try? I tried to space the requests out a bit in
> > time (I inserted a sleep 1 between them), and then the problem went
> > away.
>
> I should learn to always go through everything one last time before
> sending an email. First of all, I see that both requests are treated
> as new.
Normal when nfqueue is in use.
> Second, on my router, new requests are sent to user space for
> marking, which explains the large delay in processing. When removing
> the NFQUEUE-rule + handling and marking statically, my problem goes
> away and I get an answer for both packets.
Yes, because 2nd packet finds the conntrack entry created by the first
one.
> However, I do have one question. In my application, both packets are
> assigned the same mark. Shouldn't they then match the same conntrack
> entry, or am I missing something since that seems not to be the case?
The 2nd packet creates a new conntrack entry, because the conntrack
entry created by the first one is not inserted into global table yet.
This happens as last step, after packet has traversed all chains.
When nfqueue is used, this gets delayed, and 2nd packet will be dropped
as the insertion step finds that another packet created same flow
already.
I'm not sure what the best way to solve this is, we either need
to insert earlier in nfqueue case, or do conflict resolution in nfqueue
case (and perhaps also nat undo? not sure).
next prev parent reply other threads:[~2018-05-01 22:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-01 18:50 Silently dropped UDP packets on kernel 4.14 Kristian Evensen
2018-05-01 18:58 ` Kristian Evensen
2018-05-01 22:24 ` Florian Westphal [this message]
2018-05-01 22:42 ` Kristian Evensen
2018-05-02 23:54 ` Kristian Evensen
2018-05-03 5:03 ` Florian Westphal
2018-05-03 9:06 ` Kristian Evensen
2018-05-03 9:42 ` Michal Kubecek
2018-05-03 11:19 ` Kristian Evensen
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=20180501222406.fy5rph2t4dzndhu2@breakpoint.cc \
--to=fw@strlen.de \
--cc=kristian.evensen@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox