Giter Club home page Giter Club logo

Comments (3)

wirefalls avatar wirefalls commented on June 18, 2024

Hello,

Your new sets named 'geo-channel4' and 'geo-channel6' in refill-sets.conf needs to match set names defined in your main table in /etc/nftables.conf. Since your sets are in table inet filter, your set definitions in /etc/nftables.conf would look something like this:

  # Define empty set to store IPv4 country code specific address ranges.
  set geo-channel4 {
    type ipv4_addr
    flags interval
    # Elements for this set are defined in /etc/nftables/geo-nft/refill-sets.conf
  }

  # Define empty set to store IPv6 country code specific address ranges.
  set geo-channel6 {
    type ipv6_addr
    flags interval
    # Elements for this set are defined in /etc/nftables/geo-nft/refill-sets.conf
  }

Each set name defined in refill-sets.conf needs to match the table and set name defined in your main ruleset in /etc/nftables.conf. Sets should be defined at the beginning of the table, before or after any sets that may be there. These sets are defined empty, and will be filled when the refill-sets.nft script is run by the main geo-nft.sh script. You can verify that the sets are created by listing your ruleset:

sudo nft list ruleset

I'll clarify the error message to state that the define line does not point to a valid nftables set name defined in /etc/nftables.conf. You can use the Discussions link at the top of the page to ask additional questions if needed. Let me know how it goes.

Thanks.

from geo-nft.

GlennToms avatar GlennToms commented on June 18, 2024

I did have the lines the in the /etc/nftables.conf and even copied and pasted the above but it still gives that error.
I've moved over to Discussions too if that's the correct place.
FYI: Debian 11

Thanks

from geo-nft.

wirefalls avatar wirefalls commented on June 18, 2024

I'll go ahead and close this since it's been moved to Discussions #18.

Thank you

from geo-nft.

Related Issues (5)

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.