Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[FEATURE] AST for .nft files

Open
#280 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
go, linux

Research direction

The issue names no implementation files, tests, or entry points; start by surveying the repository's existing nftables handling and the referenced nftables scripting syntax. Define what native AST types must represent and how rule evaluation, comparison, source-file tracking, mocking, and NFT syntax output would be validated.

Written by the indexing model from the issue text.

Description

enhancement

It'd be useful, I think, to implement an AST for the .nft syntax files (e.g. nftables scripts), and populating them as native types.

This would allow for rule evaluation and comparison against the current ruleset, identifying which file a rule is created in/included from, and even dumping representations to NFT snytax.

This would likely assist in tests and mocking as well.

Dominant language
Go
Stars
1.4k
Forks
187
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/nftables

All issues in google/nftables

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.