{ "nftables": [ { "metainfo": { "version": "VERSION", "release_name": "RELEASE_NAME", "json_schema_version": 1 } }, { "table": { "family": "ip", "name": "nat", "handle": 0 } }, { "chain": { "family": "ip", "table": "nat", "name": "test", "handle": 0 } }, { "rule": { "family": "ip", "table": "nat", "chain": "test", "handle": 0, "expr": [ { "match": { "op": "==", "left": { "payload": { "protocol": "tcp", "field": "dport" } }, "right": { "set": [ 123, 321 ] } } } ] } }, { "table": { "family": "ip6", "name": "test", "handle": 0 } }, { "chain": { "family": "ip6", "table": "test", "name": "test", "handle": 0 } }, { "rule": { "family": "ip6", "table": "test", "chain": "test", "handle": 0, "expr": [ { "match": { "op": "==", "left": { "payload": { "protocol": "udp", "field": "sport" } }, "right": { "set": [ 123, 321 ] } } } ] } }, { "table": { "family": "arp", "name": "test_arp", "handle": 0 } }, { "chain": { "family": "arp", "table": "test_arp", "name": "test", "handle": 0 } }, { "rule": { "family": "arp", "table": "test_arp", "chain": "test", "handle": 0, "expr": [ { "match": { "op": "==", "left": { "meta": { "key": "mark" } }, "right": { "set": [ 123, 321 ] } } } ] } }, { "table": { "family": "bridge", "name": "test_bridge", "handle": 0 } }, { "chain": { "family": "bridge", "table": "test_bridge", "name": "test", "handle": 0 } }, { "rule": { "family": "bridge", "table": "test_bridge", "chain": "test", "handle": 0, "expr": [ { "match": { "op": "==", "left": { "payload": { "protocol": "ip", "field": "daddr" } }, "right": { "set": [ "1.1.1.1", "2.2.2.2" ] } } } ] } }, { "table": { "family": "inet", "name": "filter", "handle": 0 } }, { "chain": { "family": "inet", "table": "filter", "name": "test", "handle": 0 } }, { "rule": { "family": "inet", "table": "filter", "chain": "test", "handle": 0, "expr": [ { "match": { "op": "==", "left": { "payload": { "protocol": "tcp", "field": "dport" } }, "right": { "set": [ 80, 443 ] } } } ] } } ] }