I found solution/workaround:
there is a parameter -j, which outputs to json format, so if you run nft with
this parameter, you will get JSON formatted output.
nft -j list ruleset
{"nftables": [{"table": {"family": "inet", "name": "filter", "handle": 14}},
{"chain": {"family": "inet", "table": "f
Package: nftables
Version: 0.9.0-2
Severity: normal
Hello,
according to the nft man page, it is possible to export current ruleset
to JSON or XML format using this command:
nft export [ruleset] format
where format is a mandatory parameter and "may be either xml or json".
Using
the export com
2 matches
Mail list logo