Files
nftables-rs/resources/test/fixtures/synproxy-flag-2.json
T
Paul Holzinger c7ce1b0c4a fix: accept single or multiple synproxy flags
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>
2025-08-13 15:34:35 +02:00

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"
}
}
]
}
}
]
}