Menu

#59 Add netfilter/nflog interface.

Git head
closed-fixed
nobody
None
5
2013-11-20
2011-06-16
No

This patch add support to listen on given iptables NFLOG group(s).

It can be used to filter packets generated by given UID or do other cool stuff :)

I'm not sure whether selecting groups should be passed in interface name or BPF
Some sniffers gives list of interfaces and allow only selecting one of them, but allows to enter filter.

Example of BPF syntax:
nfgroup 10 or nfgroup 22 or nfgroup 33

Discussion

  • Jakub Zawadzki

    Jakub Zawadzki - 2011-06-16

    Add nflog interface.

     
  • Guy Harris

    Guy Harris - 2011-06-17
    • status: open --> closed-fixed
     
  • Guy Harris

    Guy Harris - 2011-06-17

    Checked into the trunk, with changes to the configure script to try to check whether the support can be compiled (due to some aligned_XXX types not being defined if __KERNEL_STRICT_NAMES is defined, and __KERNEL_STRICT_NAMES being defined, and undefining it causing other compiler failures due to redefinition of types, it wouldn't compile on my Ubuntu 7 or Ubuntu 9 virtual machines; hopefully those aren't issues in systems with newer kernels).

     
  • Jakub Zawadzki

    Jakub Zawadzki - 2011-06-17

    Hi,

    Thanks for working on portability, but configure script fails for me with:
    #v+
    In file included from conftest.c:84:
    /usr/include/linux/netlink.h:31: error: expected specifier-qualifier-list before 'sa_family_t'
    #v-
    (linux-headers 2.6.38)

    I added another: #include <sys/socket.h>
    but this is what I most hate about C, include-hell-mess ;/

     
  • Guy Harris

    Guy Harris - 2011-06-18

    OK, I've added <sys/socket.h> to the trunk.

     
  • Denis Ovsienko

    Denis Ovsienko - 2013-11-20

    Administrators of the "libpcap" SourceForge project have superseded this tracker item (formerly artifact 3317477, now patch 59) with issue 255 of the "libpcap" GitHub project.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.