{ "nftables": [ { "metainfo": { "version": "VERSION", "release_name": "RELEASE_NAME", "json_schema_version": 1 } }, { "table": { "family": "ip", "name": "t", "handle": 0 } }, { "chain": { "family": "ip", "table": "t", "name": "c", "handle": 0 } }, { "chain": { "family": "ip", "table": "t", "name": "c2", "handle": 0 } }, { "set": { "family": "ip", "name": "s", "table": "t", "type": "ipv4_addr", "handle": 0, "size": 65535, "flags": [ "dynamic" ], "elem": [ { "elem": { "val": "1.1.1.1", "counter": { "packets": 1, "bytes": 11 } } } ], "stmt": [ { "counter": null } ] } }, { "rule": { "family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [ { "counter": { "packets": 0, "bytes": 0 } }, { "set": { "op": "update", "elem": { "payload": { "protocol": "ip", "field": "saddr" } }, "set": "@s" } }, { "accept": null } ] } }, { "rule": { "family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [ { "counter": { "packets": 0, "bytes": 0 } }, { "drop": null } ] } }, { "rule": { "family": "ip", "table": "t", "chain": "c2", "handle": 0, "expr": [ { "counter": { "packets": 0, "bytes": 0 } }, { "accept": null } ] } }, { "rule": { "family": "ip", "table": "t", "chain": "c2", "handle": 0, "expr": [ { "counter": { "packets": 0, "bytes": 0 } }, { "drop": null } ] } }, { "table": { "family": "inet", "name": "t", "handle": 0 } }, { "chain": { "family": "inet", "table": "t", "name": "c", "handle": 0 } }, { "rule": { "family": "inet", "table": "t", "chain": "c", "handle": 0, "expr": [ { "counter": { "packets": 0, "bytes": 0 } }, { "accept": null } ] } }, { "rule": { "family": "inet", "table": "t", "chain": "c", "handle": 0, "expr": [ { "counter": { "packets": 0, "bytes": 0 } }, { "drop": null } ] } }, { "table": { "family": "ip", "name": "t2", "handle": 0 } }, { "chain": { "family": "ip", "table": "t2", "name": "c2", "handle": 0 } }, { "rule": { "family": "ip", "table": "t2", "chain": "c2", "handle": 0, "expr": [ { "counter": { "packets": 0, "bytes": 0 } }, { "accept": null } ] } }, { "rule": { "family": "ip", "table": "t2", "chain": "c2", "handle": 0, "expr": [ { "counter": { "packets": 0, "bytes": 0 } }, { "drop": null } ] } } ] }