betolj / ndpi-netfilter

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

libxt_ndpi.so #19

Closed adrienb4 closed 8 years ago

adrienb4 commented 8 years ago

It's possible to copy the library to another router (same debian version and same hardware) ? When I do this, I cant load xt_ndpi.so.

Thank

Adrien

betolj commented 8 years ago

You can... but you will have to resolve some dependences. This require "/lib/modules/$(uname -r)/extra/xt_ndpi.ko" - and run "depmod -a" after copy.

And you need to copy the ndpi libraries too. It can be harder work.

adrienb4 commented 8 years ago

Thank for your response, it's work. I have to install NDPI 75 in routers. Copy libraries is more simpler. You can add this method in the install doc ?

kong156 commented 8 years ago

I didn't try with kernel modules, but there is a way to pack your build into a deb package. take a look at checkinstall, dkms maybe

adrienb4 commented 8 years ago

Copy the files in this way present a risk?

kong156 commented 8 years ago

No, but it can break things when upgrading the kernel and i think it's easier to deploy...

adrienb4 commented 8 years ago

Yes i know this problem. You have a good idea to create a deb package for massive deployment.

betolj commented 8 years ago

Yes... you can build a deb package with checkinstall!

cd /usr/src/ndpi-netfilter/nDPI ./autogen.sh sudo checkinstall

Then, copy /usr/src/ndpi-netfilter/nDPI/ndpi__amd64.deb to others firewalls.