The NFTables header designation has the following format:
target:: nftables [chain name] [filter name] [priority] [inet|inet6]
- chain name: defines the name of the nftables chain.
- filter name: defines the name of the nftables filter.
- priority: defines the integer of the nftables chain priority.
- inet: specifies that the resulting filter should only render IPv4 addresses.
- inet6: specifies that the resulting filter should only render IPv6 addresses. NOTE: all of these fields are required.
- action:: The action to take when matched. See Actions section for valid options.
- comment:: A text comment enclosed in double-quotes. The comment can extend over multiple lines if desired, until a closing quote is encountered.
- counter:: Update a counter for matching packets
- destination-address:: One or more destination address tokens
- destination-exclude:: Exclude one or more address tokens from the specified destination-address
- destination-port:: One or more service definition tokens
- expiration:: stop rendering this term after specified date. YYYY-MM-DD
- icmp-type:: Specify icmp-type code to match, see section ICMP TYPES for list of valid arguments
- log-name:: Name of log to log to.
- logging:: Specify that this packet should be logged via syslog.
- name:: Name of the term.
- option:: See platforms supported Options section.
- owner:: Owner of the term, used for organizational purposes.
- platform:: one or more target platforms for which this term should ONLY be rendered. *_platform-exclude:: one or more target platforms for which this term should NEVER be rendered.
- protocol:: the network protocols this term will match, such as tcp, udp, icmp, or a numeric value.
- source-address:: one or more source address tokens.
- source-exclude:: exclude one or more address tokens from the specified source-address.
- source-port:: one or more service definition tokens.
- verbatim:: this specifies that the text enclosed within quotes should be rendered into the output without interpretation or modification. This is sometimes used as a temporary workaround while new required features are being added.
- accept
- deny
- next
- reject
- reject-with-tcp-rst