diff options
Diffstat (limited to 'examples/json-ruleset.nft')
-rw-r--r-- | examples/json-ruleset.nft | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/json-ruleset.nft b/examples/json-ruleset.nft new file mode 100644 index 00000000..acea1786 --- /dev/null +++ b/examples/json-ruleset.nft @@ -0,0 +1,43 @@ +{ + "nftables": [ + { + "flush": { + "ruleset": { + "family": "ip" + } + } + }, + { + "table": { + "family": "ip", + "name": "x" + } + }, + { + "chain": { + "family": "ip", + "table": "x", + "name": "y", + "type": "filter", + "hook": "input", + "prio": 0, + "policy": "accept" + } + }, + { + "rule": { + "family": "ip", + "table": "x", + "chain": "y", + "expr": [ + { + "counter": { + "packets": 0, + "bytes": 0 + } + } + ] + } + } + ] +} |