From: Ed W <lists@wildgooses.com>
To: Chris Wilson <chris-netfilter-110904@aptivate.org>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
netfilter-devel@vger.kernel.org
Subject: Re: UDP packets sent with wrong source address after routing change [AV#3431]
Date: Mon, 12 Nov 2012 19:56:40 +0000 [thread overview]
Message-ID: <50A15478.6070801@wildgooses.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1211121805330.23195@lap-x201>
>> An in-kernel "route changed" notification were great, because then we
>> could delete all MASQUERAD-ed entries where --update-source-address
>> flag is set.
>
> If we could register to receive routing changed events for SNAT source
> addresses, that would be great (more efficient) but if the mechanism
> does not yet exist, it would be much more difficult to create.
>
> I suppose that if we just deleted them all on any routing change, then
> that would solve the immediate problem for us. It would be ideal if
> incoming packets could still be directed to the correct internal
> source, but dropping them is a smaller problem than continuing to send
> out invalid packets and keeping a broken entry alive forever.
I'm probably completely missing the point, but:
- Route changes such as you describe will be triggered by some user
space event.
- Lets generically call that "dhcpcd" for the sake of a label
- These userspace events should all be capable of some kind of "hook" on
change
- This userspace hook can zap the relevant conntrack entries
The pros/conns seem to be that:
- one more piece of userspace to maintain
- but there is now integration between the userspace routing decisions
and the decision to zap certain conntrack entries
For example in my situation I dynamically tweak ipsets and an IP
dropping into an IPset causes routing decisions to be made for just that
user. When we add a user to an ipset we also zap previous conntrack
entries relating to that user.
I'm not sure that I can see any way for the kernel to know when it
should adjust conntrack entries in my situation?
Cheers
Ed W
next prev parent reply other threads:[~2012-11-12 19:56 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 16:35 UDP packets sent with wrong source address after routing change [AV#3431] Chris Wilson
2012-11-08 17:55 ` Jan Engelhardt
2012-11-08 18:37 ` Chris Wilson
2012-11-08 20:40 ` Jan Engelhardt
2012-11-09 16:17 ` Chris Wilson
2012-11-10 14:07 ` Pablo Neira Ayuso
2012-11-10 19:13 ` Jan Engelhardt
2012-11-10 21:47 ` Jozsef Kadlecsik
2012-11-11 12:23 ` Pablo Neira Ayuso
2012-11-12 10:24 ` Chris Wilson
2012-11-12 15:05 ` Jozsef Kadlecsik
2012-11-12 15:27 ` Chris Wilson
2012-11-12 16:56 ` Jozsef Kadlecsik
2012-11-12 18:19 ` Chris Wilson
2012-11-12 19:07 ` Jozsef Kadlecsik
2012-11-12 20:56 ` Chris Wilson
2012-11-13 15:58 ` Jozsef Kadlecsik
2012-11-13 16:09 ` Chris Wilson
2012-11-13 16:19 ` Jozsef Kadlecsik
2012-11-13 17:02 ` Chris Wilson
2012-11-13 18:01 ` Jan Engelhardt
2012-11-12 19:56 ` Ed W [this message]
2012-11-12 19:34 ` Jozsef Kadlecsik
2012-11-12 22:34 ` Chris Wilson
2012-11-13 16:04 ` Jozsef Kadlecsik
2012-11-12 23:30 ` Pablo Neira Ayuso
2012-11-13 14:23 ` Stephen Clark
2012-11-13 15:25 ` Jozsef Kadlecsik
2012-11-13 18:30 ` Stephen Clark
2012-11-13 19:24 ` Jozsef Kadlecsik
2012-11-13 21:19 ` Stephen Clark
2012-11-14 8:08 ` Jozsef Kadlecsik
2012-11-14 14:14 ` Stephen Clark
2012-11-14 14:57 ` Chris Wilson
2012-11-14 20:15 ` Jozsef Kadlecsik
2012-11-15 12:33 ` Stephen Clark
2012-11-15 14:01 ` Jozsef Kadlecsik
2012-11-13 16:11 ` Jozsef Kadlecsik
2012-11-13 16:47 ` Pablo Neira Ayuso
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=50A15478.6070801@wildgooses.com \
--to=lists@wildgooses.com \
--cc=chris-netfilter-110904@aptivate.org \
--cc=kadlec@blackhole.kfki.hu \
--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 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.