1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
8 Netfilter nftables configuration over netlink.
23 byte-order: big-endian
242 byte-order: big-endian
249 doc: name of the table
253 byte-order: big-endian
254 doc: bitmask of flags
260 byte-order: big-endian
261 doc: number of chains in this table
265 byte-order: big-endian
266 doc: numeric handle of the table
277 doc: name of the table containing the chain
281 byte-order: big-endian
282 doc: numeric handle of the chain
286 doc: name of the chain
290 nested-attributes: nft-hook-attrs
291 doc: hook specification for basechains
295 byte-order: big-endian
296 doc: numeric policy of the chain
300 byte-order: big-endian
301 doc: number of references to this chain
305 doc: type name of the chain
309 nested-attributes: nft-counter-attrs
310 doc: counter specification of the chain
314 byte-order: big-endian
321 byte-order: big-endian
322 doc: uniquely identifies a chain in a transaction
333 byte-order: big-endian
337 byte-order: big-endian
347 byte-order: big-endian
351 byte-order: big-endian
359 nested-attributes: hook-dev-attrs
360 doc: list of net devices
369 name: nft-counter-attrs
383 doc: name of the table containing the rule
387 doc: name of the chain containing the rule
391 byte-order: big-endian
392 doc: numeric handle of the rule
396 nested-attributes: expr-list-attrs
397 doc: list of expressions
401 nested-attributes: rule-compat-attrs
402 doc: compatibility specifications of the rule
406 byte-order: big-endian
407 doc: numeric handle of the previous rule
415 doc: uniquely identifies a rule in a transaction
419 doc: transaction unique identifier of the previous rule
423 doc: add the rule to chain by ID, alternative to chain name
425 name: expr-list-attrs
430 nested-attributes: expr-attrs
438 doc: name of the expression type
442 sub-message: expr-ops
444 doc: type specific data
446 name: rule-compat-attrs
451 doc: numeric value of the handled protocol
455 doc: bitmask of flags
471 byte-order: big-endian
472 doc: bitmask of enum nft_set_flags
476 byte-order: big-endian
477 doc: key data type, informational purpose only
481 byte-order: big-endian
486 byte-order: big-endian
487 doc: mapping data type
491 byte-order: big-endian
492 doc: mapping data length
496 byte-order: big-endian
497 doc: selection policy
501 nested-attributes: set-desc-attrs
506 doc: uniquely identifies a set in a transaction
510 doc: default timeout value
514 doc: garbage collection interval
525 byte-order: big-endian
526 doc: stateful object type
530 byte-order: big-endian
535 nested-attributes: expr-attrs
541 nested-attributes: set-list-attrs
542 doc: list of expressions
549 byte-order: big-endian
550 doc: number of elements in set
554 nested-attributes: set-desc-concat-attrs
555 doc: description of field concatenation
558 name: set-desc-concat-attrs
563 nested-attributes: set-field-attrs
565 name: set-field-attrs
570 byte-order: big-endian
577 nested-attributes: expr-attrs
585 nested-attributes: data-attrs
590 nested-attributes: data-attrs
591 doc: data value of mapping
595 doc: bitmask of nft_set_elem_flags
611 nested-attributes: expr-attrs
616 doc: stateful object reference
620 nested-attributes: data-attrs
621 doc: closing key value
625 nested-attributes: expr-list-attrs
626 doc: list of expressions
628 name: setelem-list-elem-attrs
633 nested-attributes: setelem-attrs
636 name: setelem-list-attrs
647 nested-attributes: setelem-list-elem-attrs
657 byte-order: big-endian
658 doc: ruleset generation id
662 byte-order: big-endian
672 doc: name of the table containing the expression
676 doc: name of this expression type
681 byte-order: big-endian
682 doc: stateful object type
686 sub-message: obj-data
688 doc: stateful object data
692 byte-order: big-endian
693 doc: number of references to this expression
697 byte-order: big-endian
712 byte-order: big-endian
716 byte-order: big-endian
724 byte-order: big-endian
726 name: flowtable-attrs
737 nested-attributes: flowtable-hook-attrs
741 byte-order: big-endian
745 byte-order: big-endian
752 byte-order: big-endian
754 name: flowtable-hook-attrs
759 byte-order: big-endian
763 byte-order: big-endian
767 nested-attributes: hook-dev-attrs
769 name: expr-bitwise-attrs
774 byte-order: big-endian
778 byte-order: big-endian
782 byte-order: big-endian
786 nested-attributes: data-attrs
790 nested-attributes: data-attrs
794 byte-order: big-endian
799 nested-attributes: data-attrs
806 byte-order: big-endian
810 byte-order: big-endian
815 nested-attributes: data-attrs
826 nested-attributes: verdict-attrs
833 byte-order: big-endian
842 name: expr-counter-attrs
851 doc: Number of packets
861 byte-order: big-endian
865 byte-order: big-endian
870 byte-order: big-endian
878 byte-order: big-endian
882 byte-order: big-endian
891 byte-order: big-endian
893 name: expr-flow-offload-attrs
898 doc: Flow offload table name
900 name: expr-immediate-attrs
905 byte-order: big-endian
909 nested-attributes: data-attrs
911 name: expr-lookup-attrs
916 doc: Name of set to use
920 byte-order: big-endian
921 doc: ID of set to use
925 byte-order: big-endian
929 byte-order: big-endian
933 byte-order: big-endian
936 name: expr-meta-attrs
941 byte-order: big-endian
945 byte-order: big-endian
950 byte-order: big-endian
957 byte-order: big-endian
961 byte-order: big-endian
965 byte-order: big-endian
969 byte-order: big-endian
973 byte-order: big-endian
977 byte-order: big-endian
981 byte-order: big-endian
982 enum: nat-range-flags
985 name: expr-payload-attrs
990 byte-order: big-endian
994 byte-order: big-endian
998 byte-order: big-endian
1002 byte-order: big-endian
1006 byte-order: big-endian
1010 byte-order: big-endian
1014 byte-order: big-endian
1018 byte-order: big-endian
1020 name: expr-reject-attrs
1025 byte-order: big-endian
1031 name: expr-target-attrs
1039 byte-order: big-endian
1044 name: expr-tproxy-attrs
1049 byte-order: big-endian
1053 byte-order: big-endian
1057 byte-order: big-endian
1059 name: expr-objref-attrs
1064 byte-order: big-endian
1072 byte-order: big-endian
1076 doc: name of object map
1080 byte-order: big-endian
1081 doc: id of object map
1089 attribute-set: expr-bitwise-attrs
1092 attribute-set: expr-cmp-attrs
1095 attribute-set: expr-counter-attrs
1098 attribute-set: expr-ct-attrs
1101 attribute-set: expr-fib-attrs
1104 attribute-set: expr-flow-offload-attrs
1107 attribute-set: expr-immediate-attrs
1110 attribute-set: expr-lookup-attrs
1113 attribute-set: expr-meta-attrs
1116 attribute-set: expr-nat-attrs
1119 attribute-set: expr-objref-attrs
1122 attribute-set: expr-payload-attrs
1125 attribute-set: quota-attrs
1128 attribute-set: expr-reject-attrs
1131 attribute-set: expr-target-attrs
1134 attribute-set: expr-tproxy-attrs
1140 attribute-set: counter-attrs
1143 attribute-set: quota-attrs
1146 enum-model: directional
1150 doc: Start a batch of operations
1151 attribute-set: batch-attrs
1152 fixed-header: nfgenmsg
1164 doc: Finish a batch of operations
1165 attribute-set: batch-attrs
1166 fixed-header: nfgenmsg
1174 doc: Create a new table.
1175 attribute-set: table-attrs
1176 fixed-header: nfgenmsg
1184 doc: Get / dump tables.
1185 attribute-set: table-attrs
1186 fixed-header: nfgenmsg
1198 doc: Delete an existing table.
1199 attribute-set: table-attrs
1200 fixed-header: nfgenmsg
1208 doc: Delete an existing table with destroy semantics (ignoring ENOENT errors).
1209 attribute-set: table-attrs
1210 fixed-header: nfgenmsg
1218 doc: Create a new chain.
1219 attribute-set: chain-attrs
1220 fixed-header: nfgenmsg
1228 doc: Get / dump chains.
1229 attribute-set: chain-attrs
1230 fixed-header: nfgenmsg
1242 doc: Delete an existing chain.
1243 attribute-set: chain-attrs
1244 fixed-header: nfgenmsg
1252 doc: Delete an existing chain with destroy semantics (ignoring ENOENT errors).
1253 attribute-set: chain-attrs
1254 fixed-header: nfgenmsg
1262 doc: Create a new rule.
1263 attribute-set: rule-attrs
1264 fixed-header: nfgenmsg
1272 doc: Get / dump rules.
1273 attribute-set: rule-attrs
1274 fixed-header: nfgenmsg
1286 doc: Get / dump rules and reset stateful expressions.
1287 attribute-set: rule-attrs
1288 fixed-header: nfgenmsg
1300 doc: Delete an existing rule.
1301 attribute-set: rule-attrs
1302 fixed-header: nfgenmsg
1310 doc: Delete an existing rule with destroy semantics (ignoring ENOENT errors).
1311 attribute-set: rule-attrs
1312 fixed-header: nfgenmsg
1320 doc: Create a new set.
1321 attribute-set: set-attrs
1322 fixed-header: nfgenmsg
1330 doc: Get / dump sets.
1331 attribute-set: set-attrs
1332 fixed-header: nfgenmsg
1344 doc: Delete an existing set.
1345 attribute-set: set-attrs
1346 fixed-header: nfgenmsg
1354 doc: Delete an existing set with destroy semantics (ignoring ENOENT errors).
1355 attribute-set: set-attrs
1356 fixed-header: nfgenmsg
1364 doc: Create a new set element.
1365 attribute-set: setelem-list-attrs
1366 fixed-header: nfgenmsg
1374 doc: Get / dump set elements.
1375 attribute-set: setelem-list-attrs
1376 fixed-header: nfgenmsg
1387 name: getsetelem-reset
1388 doc: Get / dump set elements and reset stateful expressions.
1389 attribute-set: setelem-list-attrs
1390 fixed-header: nfgenmsg
1402 doc: Delete an existing set element.
1403 attribute-set: setelem-list-attrs
1404 fixed-header: nfgenmsg
1411 name: destroysetelem
1412 doc: Delete an existing set element with destroy semantics.
1413 attribute-set: setelem-list-attrs
1414 fixed-header: nfgenmsg
1422 doc: Get / dump rule-set generation.
1423 attribute-set: gen-attrs
1424 fixed-header: nfgenmsg
1436 doc: Create a new stateful object.
1437 attribute-set: obj-attrs
1438 fixed-header: nfgenmsg
1446 doc: Get / dump stateful objects.
1447 attribute-set: obj-attrs
1448 fixed-header: nfgenmsg
1460 doc: Delete an existing stateful object.
1461 attribute-set: obj-attrs
1462 fixed-header: nfgenmsg
1470 doc: Delete an existing stateful object with destroy semantics.
1471 attribute-set: obj-attrs
1472 fixed-header: nfgenmsg
1480 doc: Create a new flow table.
1481 attribute-set: flowtable-attrs
1482 fixed-header: nfgenmsg
1490 doc: Get / dump flow tables.
1491 attribute-set: flowtable-attrs
1492 fixed-header: nfgenmsg
1504 doc: Delete an existing flow table.
1505 attribute-set: flowtable-attrs
1506 fixed-header: nfgenmsg
1513 name: destroyflowtable
1514 doc: Delete an existing flow table with destroy semantics.
1515 attribute-set: flowtable-attrs
1516 fixed-header: nfgenmsg