summaryrefslogtreecommitdiff
path: root/test/resource/HitPolicyRequest.json
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-10-18 18:17:51 +0800
committerfengweihao <[email protected]>2024-10-18 18:17:51 +0800
commit44259187b2a713534c954adc97373758630726c4 (patch)
tree2d3147414962eff0a5bb6e8d83078fb72a646342 /test/resource/HitPolicyRequest.json
parentbe7368a0cce09adaf66f3697a8c2efb05f79fcff (diff)
TSG-22738 VerifyPolicy适配MAAT,将Policy的分发格式从行列式变更为JSONv4.1.0-20241018
Diffstat (limited to 'test/resource/HitPolicyRequest.json')
-rw-r--r--test/resource/HitPolicyRequest.json87
1 files changed, 86 insertions, 1 deletions
diff --git a/test/resource/HitPolicyRequest.json b/test/resource/HitPolicyRequest.json
index 6b28f1b..4085387 100644
--- a/test/resource/HitPolicyRequest.json
+++ b/test/resource/HitPolicyRequest.json
@@ -83,6 +83,7 @@
"attribute_name": "tunnel_endpointa",
"attribute_value": {
"ip": "192.168.0.4",
+ "port":80,
"tunnel_type":"gtp",
"addr_type": 4
}
@@ -168,7 +169,7 @@
"attribute_name": "source",
"attribute_value": {
"ip": "192.168.0.2",
- "port":"8080",
+ "port": "80",
"addr_type": 4
}
},
@@ -178,6 +179,7 @@
"attribute_name": "destination",
"attribute_value": {
"ip": "192.168.0.3",
+ "port": "80",
"addr_type": 4
}
},
@@ -300,6 +302,89 @@
}
],
"verify_type": "policy"
+ },
+ {
+ "__item_id": 8,
+ "vsys_id": 1,
+ "verify_list": [
+ {
+ "type": "pxy_manipulation",
+ "vsys_id": 1,
+ "verify_session": {
+ "attributes": [
+ {
+ "attribute_type": "ip",
+ "table_name": "ATTR_SOURCE_IP",
+ "attribute_name": "source",
+ "attribute_value": {
+ "ip": "192.168.55.4",
+ "port": "80",
+ "addr_type": 4
+ }
+ },
+ {
+ "attribute_type": "ip",
+ "table_name": "ATTR_IP_PROTOCOL",
+ "attribute_name": "ip_protocol",
+ "attribute_value": {
+ "addr_type": 4,
+ "protocol": 6
+ }
+ },
+ {
+ "attribute_type": "port",
+ "table_name": "ATTR_SOURCE_PORT",
+ "attribute_name": "source",
+ "attribute_value": {
+ "port": "80"
+ }
+ },
+ {
+ "attribute_type": "numeric",
+ "table_name": "ATTR_APP_ID",
+ "attribute_name": "app_id",
+ "attribute_value": {
+ "numeric": 67
+ }
+ },
+ {
+ "attribute_type": "string",
+ "table_name": "ATTR_HTTP_REQ_HDR",
+ "attribute_name": "req_hdr",
+ "attribute_value": {
+ "district":"User-Agent",
+ "string":"test"
+ }
+ },
+ {
+ "attribute_type": "string",
+ "table_name": "ATTR_TUNNEL_LEVEL",
+ "attribute_name": "tunnel_level",
+ "attribute_value": {
+ "numeric": 60
+ }
+ },
+ {
+ "attribute_type": "flag",
+ "table_name": "ATTR_FLAG",
+ "attribute_name": "flag",
+ "attribute_value": {
+ "numeric": 15
+ }
+ },
+ {
+ "attribute_type": "boolean",
+ "table_name": "ATTR_SSL_ECH",
+ "attribute_name": "esni",
+ "attribute_value": {
+ "numeric": 1
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "verify_type": "policy"
}
]
} \ No newline at end of file