Skip to content

Commit

Permalink
doc: Update nftables documentation to reflect features added in previ…
Browse files Browse the repository at this point in the history
…ous commits.

PiperOrigin-RevId: 675185493
  • Loading branch information
ivucica authored and Capirca Team committed Sep 16, 2024
1 parent ef40436 commit 89bf38f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/generators/nftables.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
The NFTables header designation has the following format:

```
target:: newnftables [nf_address_family] [nf_hook] {default_policy_override} {int: base chain priority} {noverbose}
target:: newnftables [nf_address_family] [nf_hook] {default_policy_override} {int: base chain priority} {noverbose} {base-chain-name chainname} {table-name tablename} {as-regular-chain}
```

Unless otherwise stated, all fields are required unless they're marked optional.

- nf_address_family: defines the IP address family for the policies. (inet, inet6, mixed)
- nf_hook: defines the traffic direction and the nftables hook for the rules. (input, output)
- default_policy_override: **OPTIONAL** defines the default action (ACCEPT, DROP) for non-matching packets. Default behavior is DROP.
- default_policy_override: **OPTIONAL** defines the default action (ACCEPT, DROP) for non-matching packets. Default behavior is DROP. (Does not support specifying 'REJECT', only 'ACCEPT'. Case sensitive.)
- priority: **OPTIONAL** By default, this generator creates base chains with a starting priority of 0. Defining an integer value will override this behavior.
- noverbose: **OPTIONAL** Disable header and term comments in final ACL output. Default behavior is verbose.

Expand Down Expand Up @@ -52,7 +52,10 @@ Note: combining source-interface and destination-interface tokens within a term
### Actions

- _accept_
- _drop_
- _deny_
- _reject_

Note, _deny_ maps to _drop_.

### Logging

Expand Down

0 comments on commit 89bf38f

Please sign in to comment.