Comments (8)
I installed Ubuntu 14.04.2 LTS
to test this. But, 'it works for me':
@ubu:~/ipt-netflow# LANG=C dkms install -m ipt-netflow/2.1-16-g2837ec1
Kernel preparation unnecessary for this kernel. Skipping...
Running the pre_build script:
Kernel version: 3.16.0-33-generic (uname)
Kernel sources: /lib/modules/3.16.0-33-generic/build (dkms)
Checking for presence of include/linux/llist.h... Yes
Iptables binary version: 1.4.21 (detected from /sbin/iptables)
pkg-config for version 1.4.21 exists: Yes
Checking for presence of xtables.h... Yes (using pkg-config)
Iptables include flags: (pkg-config)
Iptables module path: /lib/xtables (pkg-config)
Searching for net-snmp-config... No.
Searching for net-snmp agent... Yes.
! You have net-snmp agent but not development package.
! net-snmp agent will not be built, to fix:
! run: apt-get install libsnmp-dev
Checking for DKMS... Yes.
Creating Makefile.. done.
If you need some options enabled run ./configure --help
Now run: make all install
Building module:
cleaning build area....
make KERNELRELEASE=3.16.0-33-generic ipt_NETFLOW.ko.....
cleaning build area....
DKMS: build completed.
ipt_NETFLOW.ko:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/3.16.0-33-generic/updates/dkms/
depmod.....
DKMS: install completed.
@ubu:~/ipt-netflow# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
from ipt-netflow.
I'm falling back to analysing your output.
Iptables binary version: 1.4.21 (detected from /sbin/iptables)
pkg-config for version 1.4.21 exists: No (reported: 1.4.19.1)
Checking for presence of xtables.h... Yes
Searching for iptables-1.4.21 sources..
! Can not find iptables source directory, you may try setting it with --ipt-src=
! This is not fatal error, yet. Will be just using default include dir.
Iptables include flags: none (default)
Iptables module path: /usr/local/lib/xtables
/tmp/iptables-1.4.19.1/libxtables (from iptables binary)
Why is pkg-config
reporting iptables/xtables version 1.4.19.1
while binary is actually 1.4.21
?
You have some manually installed iptables somewhere?
Please show pkg-config xtables --modversion
. How much pkg-configs do you have? Please show whereis pkg-config
and whereis iptables
output.
Why in first configure run pkg-config
reporting proper version 1.4.21
but from dkms it's different? It seems, like your system configuration is messed up. Please provide more details.
My preliminary guess, is that you have several pkg-configs and iptableses installed via package system (apt-get install
into /usr/bin
) and manually (make install
into /usr/local/
), which confuse build system. And my preliminary suggestion is—remove either packages or manual installs.
from ipt-netflow.
Yes, you were absolutely right! I have had two different version of iptables (in /sbin/ and /usr/local/sbin/iptables) and so two different xtables.pc in pkg-config. After I fix it, all OK finally.
Are there any possibility to take into account ./configure flags in dkms.conf? As far as I see, dkms.conf doesn't respect it and dkms module so can't me modified accordingly.
from ipt-netflow.
In fact, it should already save configure flags. If not, it's bug (but in my test with Ubuntu it passed args correctly).
dkms.conf have line PRE_BUILD="./configure --from-dkms-conf=$kernel_source_dir"
, and configure, if called with --from-dkms-conf
, extracts CARGS variable from Makefile, which contains configure options.
from ipt-netflow.
How can I check it? In other words, if I made ./configure --enable-natevents --disable-snmp-agent && make all install
and dkms install -m ipt-netflow/2.1-14-g22ddee7
after, it makes dkms module with nat-events support and snmp-agent absent. Right?
from ipt-netflow.
if I made ./configure --enable-natevents --disable-snmp-agent && make all install and dkms install -m ipt-netflow/2.1-14-g22ddee7 after, it makes dkms module with nat-events support and snmp-agent absent. Right?
SNMP agent is not part of the kernel module, it's separate thing (net-snmp module) not related to the linux kernel, and will not be installed via DKMS.
About nat-events, yes, you are right.
To check cat /proc/net/stat/ipt_netflow
and look at the first line, it will contain list of enabled options, and you should see 'nel' if natevent are enabled.
from ipt-netflow.
@YusDyr Did you verify that there is no problem with respect of configure options? I plan to close this issue.
from ipt-netflow.
You definetly can close it, thank you!
from ipt-netflow.
Related Issues (20)
- specify source port
- natevents sending flows only if "conntrack -E" is running HOT 5
- Compile error on kernel 4.15.0, Ubuntu 18.04.6 LTS HOT 2
- wk_cpu = __smp_processor_id(); HOT 4
- no data flow HOT 1
- Error in 5.15.86 ct_event HOT 17
- periodic will reconnect HOT 5
- Warning on module unload: "BUG: using smp_processor_id() in preemptible" HOT 1
- Missing logs HOT 1
- compiling error on ubuntu 18.04 HOT 2
- disable traffic flow
- Cross-compiling master HOT 2
- Use diferent protocol versions for different destinations
- git does not build on arch - 6.4.1-arch2-1 implicit declaration of function ‘register_sysctl_paths’; did you mean ‘register_sysctl_table’? [-Werror=implicit-function-declaration] HOT 9
- Couldn't load target `NETFLOW' debian 11.7 kernel 5.10.0-22 HOT 1
- Unusual CPU usage spike after certain pps count? HOT 1
- How to correctly set the time of sending netflow
- natevent not working (Debian 12/6.1.0-10-amd64) HOT 1
- ipt_netflow Issue on Ubuntu 18: Nat Events Missing HOT 1
- No longer builds Arch HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipt-netflow.