betolj / ndpi-netfilter

GNU General Public License v2.0
126 stars 69 forks source link

Unable to install ndpi in debian 8 as well as no iptables rules are applied, giving an error such as iptables: No chain/target/match by that name. #77

Open kv-sachin opened 4 years ago

kv-sachin commented 4 years ago

While compiling ndpi facing and issue -

sudo make modules_install make -C src modules_install make[1]: Entering directory '/usr/src/ndpi-netfilter-master/src' make -C /lib/modules/4.19.67-amd64-vyos/build M=$PWD modules_install; make[2]: Entering directory '/usr/src/ndpi-netfilter-master/src' make[2]: /lib/modules/4.19.67-amd64-vyos/build: No such file or directory. Stop. make[2]: Leaving directory '/usr/src/ndpi-netfilter-master/src' Makefile:171: recipe for target 'modules_install' failed make[1]: [modules_install] Error 2 make[1]: Leaving directory '/usr/src/ndpi-netfilter-master/src' Makefile:8: recipe for target 'modules_install' failed make: *** [modules_install] Error 2

And when putting iptable rules it is giving following error -

sudo iptables -A OUTPUT -m ndpi --bittorrent -j DROP iptables: No chain/target/match by that name.

joeneh28 commented 4 years ago

facing the same problem, if you find the solution pls share it here thank you

alamgirqazi commented 3 years ago

did it work ?

Bit-Warrior-X commented 11 months ago

I have fixed this error. You should install kernel-devel. I just use CentOS 7.9. Also you should find your kernel version. ll /lib/modules/

Then you can install kernel-devel-version. In my case kernel version was 3.10.0-1160.el7.x86_64 So used this command: yum install kernel-devel-3.10.0-1160.el7.x86_64

then make and make and make modules_install works correctly.

Thanks.