GithubHelp home page GithubHelp logo

Add custom protocol about ndpi-netfilter HOT 7 CLOSED

betolj avatar betolj commented on July 30, 2024
Add custom protocol

from ndpi-netfilter.

Comments (7)

betolj avatar betolj commented on July 30, 2024

You cant do this, yet.
I think that: the best way to filter url is made with proxy servers, like squid (in userspace)

from ndpi-netfilter.

rightkick avatar rightkick commented on July 30, 2024

I think what rsweerarathna has in mind is the custom protocol definitions that you can set with ndpi on ntop-ng.

from ndpi-netfilter.

rsweerarathna avatar rsweerarathna commented on July 30, 2024

Hi betolj,
I have change nDPI code to identify the IFLIX as a protocol. It works with ndpiReader example and identifies all the flows as screenshot attached.
make_output.txt
. I changed only two files as mentioned in ntop/nDPI#127
After changing these files i replace your netfilter module "ndpi_content_match.c.inc" and "ndpi_protocol_ids.h" with my updated files.
Now it's giving some errors which attached here. Can you please help me to fix them? or just let me know what are the source files i should update to fix this.

Regards,
screenshot from 2016-10-08 22 09 03
make_output.txt

Shamin weerarathna.

from ndpi-netfilter.

rsweerarathna avatar rsweerarathna commented on July 30, 2024

I had ndpi-netfiler older version.
Now i installed the latest ndpi-netfilter code and then replace that two files. now it's giving some different error. see the screenshot.
screenshot from 2016-10-09 10 40 26

from ndpi-netfilter.

betolj avatar betolj commented on July 30, 2024

There are still remnants of old nDPI version.
For example: the TDS protocol has been moved/replaced to MSSQL_TDS.

So, don't try to use the old project directory.
Unpack and build again in another directory and move your files for this
path too.

2016-10-09 1:18 GMT-04:00 rsweerarathna [email protected]:

I had ndpi-netfiler older version.
Now i installed the latest ndpi-netfilter code and then replace that two
files. now it's giving some different error. see the screenshot.
[image: screenshot from 2016-10-09 10 40 26]
https://cloud.githubusercontent.com/assets/17285987/19218097/e1e01784-8e0d-11e6-90cf-2e6be8550dfe.png


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEBma_Zmw2JWiSdFUx4oaBRthVpirPLpks5qyHkcgaJpZM4JLKAy
.

from ndpi-netfilter.

betolj avatar betolj commented on July 30, 2024

The latest version now includes OCS.
But, if there are new changes (custom protocol), you need to fix this manually. You can't overwrite the file directly. The older structure is incompatible.

from ndpi-netfilter.

betolj avatar betolj commented on July 30, 2024

It's need to include the nDPI ID in the file "/usr/src/ndpi-netfilter/src/xt_ndpi.h" too.

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.