All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rework of userspace expectation support
@ 2011-04-12 21:59 Pablo Neira Ayuso
  2011-04-12 21:59 ` [PATCH 1/2] netfilter: CT: allow to set userspace helper status flag Pablo Neira Ayuso
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Pablo Neira Ayuso @ 2011-04-12 21:59 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber

Hi Patrick,

The following patches rework the userspace expectation support
to fix one problematic scenario: if the master conntrack vanishes
while there are still userspace expectations, we hit an oops
in the destroy event path for expectations.

The idea to fix this is to extend the iptables CT target to
explicit allocate the helper extension for conntracks that
are suppose to behave as master for user-space expectations.

In the case of the userspace FTP helper, people would need
to add the following rule:

iptables -A PREROUTING -t raw \
	-p tcp --dport 21 -j CT --userspace-helper

Thus, we can store the list of expectations that belong to
one master, and delete them in case that the master vanishes.

---

Pablo Neira Ayuso (2):
      netfilter: CT: allow to set userspace helper status flag
      netfilter: nf_ct_expect: rework userspace expectation support


 include/linux/netfilter/nf_conntrack_common.h |    4 ++
 include/linux/netfilter/xt_CT.h               |    3 +
 include/net/netfilter/nf_conntrack_expect.h   |    1 
 net/netfilter/nf_conntrack_expect.c           |   63 ++++++++-----------------
 net/netfilter/nf_conntrack_helper.c           |   12 +++++
 net/netfilter/nf_conntrack_netlink.c          |    5 ++
 net/netfilter/xt_CT.c                         |    8 ++-
 7 files changed, 48 insertions(+), 48 deletions(-)


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-06-13 21:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-12 21:59 [PATCH 0/2] rework of userspace expectation support Pablo Neira Ayuso
2011-04-12 21:59 ` [PATCH 1/2] netfilter: CT: allow to set userspace helper status flag Pablo Neira Ayuso
2011-04-12 21:59 ` [PATCH 2/2] netfilter: nf_ct_expect: rework userspace expectation support Pablo Neira Ayuso
2011-04-13 11:37 ` [PATCH 0/2] rework of " Patrick McHardy
2011-04-13 11:47   ` Pablo Neira Ayuso
2011-04-13 11:55     ` Patrick McHardy
2011-04-13 12:11       ` Pablo Neira Ayuso
2011-04-13 12:28         ` Patrick McHardy
2011-04-13 20:02           ` Pablo Neira Ayuso
2011-04-20 12:10           ` Pablo Neira Ayuso
2011-04-20 14:06             ` Patrick McHardy
2011-04-21 13:14               ` Pablo Neira Ayuso
2011-05-17 21:12                 ` Sam Roberts
2011-06-13 21:57                   ` Sam Roberts

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.