Skip to content

Implement filter for NFCT

Eric Leblond netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nfct: call register callback on opened handlerinput/flow/ulogd_inpflow_NFCT.c+1 -10 replies
2/4addr: add file containing addr utility functions.include/ulogd/addr.h src/Makefile.am src/addr.c+132 -10 replies
3/4nfct: implement src and dst filterinput/flow/ulogd_inpflow_NFCT.c ulogd.conf.in+218 -20 replies
4/4nfct: add protocol filterinput/flow/ulogd_inpflow_NFCT.c ulogd.conf.in+59 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Ulogd PATCH 0/4] Implement filter for NFCT

Hello,

This patchset implements filtering capability in NFCT input plugin. For now this is only possible when NFCT is used in event mode as the libnetfilter_conntrack library does not support filtering of dump.

It adds a set of variable t the configuration of a NFCT capture in ulogd.conf:

# source ip of connection must belong to these networks
accept_src_filter=192.168.1.0/24,1:2::/64 
# destination ip of connection must belong to these networks
accept_dst_filter=192.168.1.0/24 
# layer 4 proto of connections
accept_proto_filter=tcp,sctp

Patchset statistics:

 include/ulogd/addr.h            |   18 +++
 input/flow/ulogd_inpflow_NFCT.c |  274 ++++++++++++++++++++++++++++++++-
 src/Makefile.am                 |    2 +-
 src/addr.c                      |  113 ++++++++++++++
 ulogd.conf.in                   |    5 +
 5 files changed, 408 insertions(+), 4 deletions(-)

BR,
--
Eric Leblond <[email protected]>