mirror of
https://github.com/nftables-rs/nftables-rs.git
synced 2026-10-30 08:07:46 +00:00
Like for fib flags with nft 1.1.4 a single flag value is printed as string not array so the parser need to account for that. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
89 lines
2.2 KiB
JSON
89 lines
2.2 KiB
JSON
{
|
|
"nftables": [
|
|
{
|
|
"metainfo": {
|
|
"version": "1.1.0",
|
|
"release_name": "some name",
|
|
"json_schema_version": 1
|
|
}
|
|
},
|
|
{
|
|
"table": {
|
|
"family": "ip",
|
|
"name": "test",
|
|
"handle": 1
|
|
}
|
|
},
|
|
{
|
|
"synproxy": {
|
|
"family": "ip",
|
|
"name": "syn1",
|
|
"table": "test",
|
|
"handle": 4,
|
|
"mss": 1100,
|
|
"wscale": 7,
|
|
"flags": "timestamp"
|
|
}
|
|
},
|
|
{
|
|
"synproxy": {
|
|
"family": "ip",
|
|
"name": "syn2",
|
|
"table": "test",
|
|
"handle": 5,
|
|
"mss": 1000,
|
|
"wscale": 6,
|
|
"flags": [
|
|
"timestamp",
|
|
"sack-perm"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"chain": {
|
|
"family": "ip",
|
|
"table": "test",
|
|
"name": "chain1",
|
|
"handle": 1
|
|
}
|
|
},
|
|
{
|
|
"rule": {
|
|
"family": "ip",
|
|
"table": "test",
|
|
"chain": "chain1",
|
|
"handle": 2,
|
|
"expr": [
|
|
{
|
|
"synproxy": {
|
|
"mss": 1460,
|
|
"wscale": 7,
|
|
"flags": [
|
|
"timestamp",
|
|
"sack-perm"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"rule": {
|
|
"family": "ip",
|
|
"table": "test",
|
|
"chain": "chain1",
|
|
"handle": 3,
|
|
"expr": [
|
|
{
|
|
"synproxy": {
|
|
"mss": 1500,
|
|
"wscale": 5,
|
|
"flags": "timestamp"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|