GithubHelp home page GithubHelp logo

Comments (1)

rightkick avatar rightkick commented on August 14, 2024

I faced the same issue with Debian buster kernel 4.19.0-13-amd64. I did the following to resolve this. I'm putting all the steps for your convenience:

cd /usr/local/src/
git clone https://github.com/betolj/ndpi-netfilter.git
cd /usr/local/src/ndpi-netfilter
tar xvfz nDPI.tar.gz

# find all the references of the missing kernel symbol
grep -r nf_ct_l3proto .

# output
./src/main.c:   return nf_ct_l3proto_try_module_get (match->family) == 0;
./src/main.c:   return nf_ct_l3proto_try_module_get (par->family) == 0;
./src/main.c:   return nf_ct_l3proto_try_module_get (par->family);
./src/main.c:   nf_ct_l3proto_module_put (match->family);
./src/main.c:   nf_ct_l3proto_module_put (par->family);
./old/src/main.c:       return nf_ct_l3proto_try_module_get (match->family) == 0;
./old/src/main.c:       return nf_ct_l3proto_try_module_get (par->family) == 0;
./old/src/main.c:       return nf_ct_l3proto_try_module_get (par->family);
./old/src/main.c:       nf_ct_l3proto_module_put (match->family);
./old/src/main.c:       nf_ct_l3proto_module_put (par->family);

# and edit at each above occurence the return command to return false. example: 
return nf_ct_l3proto_try_module_get (match->family) == 0;
---> 
return false;

and comment out all the other. example: 
//nf_ct_l3proto_module_put (match->family);

# Proceed with the normal installation steps: 
cd nDPI
./autogen.sh
make
make install
cd ..
NDPI_PATH=/usr/local/src/ndpi-netfilter/nDPI make
make modules_install
cp /usr/local/src/ndpi-netfilter/ipt/libxt_ndpi.so /usr/lib/x86_64-linux-gnu/xtables/

# manually load the module just for testing
modprobe xt_ndpi

# Confirm good order
lsmod | grep ndpi
iptables -m ndpi --help

Note that I believe that the above changes are safe as they are included in if statements for older kernel versions. I cannot say though that I understand the code. Following this patch, I did not see any issue with a quick test.

from ndpi-netfilter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.