{ "nftables": [ { "metainfo": { "version": "VERSION", "release_name": "RELEASE_NAME", "json_schema_version": 1 } }, { "table": { "family": "inet", "name": "x", "handle": 0 } }, { "chain": { "family": "inet", "table": "x", "name": "y", "handle": 0 } }, { "set": { "family": "inet", "name": "y", "table": "x", "type": "ipv4_addr", "handle": 0, "elem": [ "2.2.2.2", "3.3.3.3" ] } }, { "rule": { "family": "inet", "table": "x", "chain": "y", "handle": 0, "expr": [ { "match": { "op": "==", "left": { "payload": { "protocol": "icmpv6", "field": "type" } }, "right": { "set": [ "destination-unreachable", "packet-too-big" ] } } }, { "accept": null } ] } }, { "rule": { "family": "inet", "table": "x", "chain": "y", "handle": 0, "expr": [ { "match": { "op": "==", "left": { "payload": { "protocol": "icmp", "field": "type" } }, "right": { "set": [ 1, 2 ] } } }, { "accept": null } ] } }, { "rule": { "family": "inet", "table": "x", "chain": "y", "handle": 0, "expr": [ { "match": { "op": "==", "left": { "payload": { "protocol": "tcp", "field": "dport" } }, "right": { "set": [ 21, 2121 ] } } }, { "counter": { "packets": 0, "bytes": 0 } }, { "accept": null } ] } } ] }