Giter Site home page Giter Site logo

Comments (6)

vel21ripn avatar vel21ripn commented on August 16, 2024

conntrack -L is empty?
grep . /sys/module/xt_ndpi/parameters/err_ct* have non-zero values?

from ndpi.

pratikg-infinity avatar pratikg-infinity commented on August 16, 2024

conntrack -L is empty, err_ct_null has non-zero value and other params have 0 values.

$ conntrack -L

conntrack v1.4.7 (conntrack-tools): 0 flow entries have been shown.

$ sudo grep . /sys/module/xt_ndpi/parameters/err_ct*

/sys/module/xt_ndpi/parameters/err_ct_confirm:0
/sys/module/xt_ndpi/parameters/err_ct_free_magic:0
/sys/module/xt_ndpi/parameters/err_ct_ndpi:0
/sys/module/xt_ndpi/parameters/err_ct_nolabel:0
/sys/module/xt_ndpi/parameters/err_ct_null:282

from ndpi.

vel21ripn avatar vel21ripn commented on August 16, 2024

Need nf_conntrack running. I don’t know how to do this in “vyos 1.5” kernel “6.6.37-amd64-vyos”.
You may need to add some rule that checks the connection state (iptables -A FORWARD -m conntrack --ctstate INVALID -j DROP)

What does the command lsmod | grep conntrack show?

from ndpi.

pratikg-infinity avatar pratikg-infinity commented on August 16, 2024

Here is the output of lsmod-

$ lsmod | grep conntrack
nf_conntrack_netlink 61440 0
nf_conntrack 192512 5 nf_nat,nfnetlink_cthelper,nft_ct,nf_conntrack_netlink,xt_ndpi
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 12288 1 nf_conntrack
nfnetlink 20480 4 nfnetlink_cthelper,nft_compat,nf_conntrack_netlink,nf_tables

from ndpi.

vel21ripn avatar vel21ripn commented on August 16, 2024

If "conntrack -L" does not show any connections, nDPI will not work.

from ndpi.

pratikg-infinity avatar pratikg-infinity commented on August 16, 2024

@vel21ripn Thanks for guidance. It was helpful. I figured out that, conntrack was not showing connections because NAT configuration was missing. After configuring SNAT rule as following, it started blocking connections.

set nat source rule 100 outbound-interface name 'eth0'
set nat source rule 100 translation address 'masquerade'

from ndpi.

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.