Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

natevent not working (Debian 12/6.1.0-10-amd64) #225

Open
bbeaver2021 opened this issue Oct 19, 2023 · 3 comments
Open

natevent not working (Debian 12/6.1.0-10-amd64) #225

bbeaver2021 opened this issue Oct 19, 2023 · 3 comments

Comments

@bbeaver2021
Copy link

ipt_NETFLOW 2.6-17-g0eb2092, srcversion 9D57791DE7AEF9589512DAB; llist nel
Protocol version 5 (netflow)
Timeouts: active 1800s, inactive 15s. Maxflows 2000000
Natevents enabled, count start 0, stop 0.
Flows: active 404150 (peak 443178 reached 0d0h6m ago), mem 79532K, worker delay 1/250 [1..25] (4 ms, 0 us, 525:0 0 [cpu4]).
Hash: size 2097152 (mem 16384K), metric 1.12 [1.09, 1.00, 1.00]. InHash: 300180914 pkt, 278356070 K, InPDU 4, 224.
Rate: 7293200054 bits/sec, 874524 packets/sec; Avg 1 min: 7635331532 bps, 909034 pps; 5 min: 7750775167 bps, 921411 pps
cpu#     pps; <search found new [metric], trunc frag alloc maxflows>, traffic: <pkt, bytes>, drop: <pkt, bytes>
Total 874522; 121414669 909693726 22184868 [1.13],    0    0    0    0, traffic: 931878594, 934413 MB, drop: 0, 0 K
cpu0  100593; 15547534 113242231 2772980 [1.13],    0    0    0    0, traffic: 116015211, 119335 MB, drop: 0, 0 K
cpu1  107891; 15316178 114351858 2751969 [1.10],    0    0    0    0, traffic: 117103827, 120356 MB, drop: 0, 0 K
cpu2  113101; 15433141 118342878 2750816 [1.10],    0    0    0    0, traffic: 121093694, 125149 MB, drop: 0, 0 K
cpu3  111405; 15785834 116452164 2776246 [1.10],    0    0    0    0, traffic: 119228410, 119553 MB, drop: 0, 0 K
cpu4  112176; 13943633 109057170 2783437 [1.08],    0    0    0    0, traffic: 111840607, 111844 MB, drop: 0, 0 K
cpu5  111226; 15808755 118111042 2744188 [1.10],    0    0    0    0, traffic: 120855230, 114976 MB, drop: 0, 0 K
cpu6  110875; 14909862 109683256 2830708 [1.10],    0    0    0    0, traffic: 112513964, 111385 MB, drop: 0, 0 K
cpu7  107255; 14669732 110453133 2774524 [1.09],    0    0    0    0, traffic: 113227657, 111811 MB, drop: 0, 0 K
Export: Rate 3083184 bytes/s; Total 2178072 pkts, 3040 MB, 21780715 flows; Errors 0 pkts; Traffic lost 0 pkts, 0 Kbytes, 0 flows.

Natevents enabled, count start 0, stop 0.

Whats wrong?

@bbeaver2021
Copy link
Author

sysctl net.netfilter.nf_conntrack_events=1 fixes troule

@miklezzzz
Copy link

@bbeaver2021 hello! how did you manage to build it with natevents support on Debian 12? I'm getting

root@nat-dell730:~/ipt-netflow# make all install
./gen_compat_def > compat_def.h
Test symbol xt_family linux/netfilter_ipv4/ip_tables.h  declared
Test struct timeval linux/ktime.h  undeclared
Test struct proc_ops linux/proc_fs.h  declared
Test symbol synchronize_sched linux/rcupdate.h  undeclared
Test symbol nf_bridge_info_get linux/netfilter_bridge.h  declared
Test struct vlan_dev_priv linux/if_vlan.h  declared
Compiling 2.6 for kernel 6.1.94
make -C /lib/modules/6.1.0-22-amd64/build M=/root/ipt-netflow modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-22-amd64'
  CC [M]  /root/ipt-netflow/ipt_NETFLOW.o
/root/ipt-netflow/ipt_NETFLOW.c:1946:13: error: static declaration of ‘sk_error_report’ follows non-static declaration
 1946 | static void sk_error_report(struct sock *sk

@miklezzzz
Copy link

huh, never mind, had to switch to master :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants