204 lines
10 KiB
JSON
204 lines
10 KiB
JSON
{
|
|
"rule_table": "PXY_CTRL_RULE",
|
|
"object2object_table": "OBJECT_GROUP",
|
|
"rules": [
|
|
{
|
|
"uuid": "00001021-0000-0000-0000-000000000000",
|
|
"service": 1,
|
|
"action": "manipulate",
|
|
"blacklist_option": 1,
|
|
"log_option": "all",
|
|
"action_parameter": {"protocol":"http","method":"redirect","code":302,"to":"https://www.jd.com"},
|
|
"is_valid": "yes",
|
|
"and_conditions": [
|
|
{
|
|
"attribute_name": "ATTR_HTTP_URL",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_URL",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "baidu.com",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_APP_ID",
|
|
"negate_option": false,
|
|
"object_uuids": [
|
|
"00000201-0000-0000-0000-000000000000"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"uuid": "00001023-0000-0000-0000-000000000000",
|
|
"service": 1,
|
|
"action": "manipulate",
|
|
"blacklist_option": 1,
|
|
"log_option": "all",
|
|
"action_parameter": {"protocol":"http","method":"replace","rules":[{"search_in":"http_resp_body","find":"邮箱","replace_with":"test"}]},
|
|
"is_valid": "yes",
|
|
"and_conditions": [
|
|
{
|
|
"attribute_name": "ATTR_SERVER_FQDN",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_FQDN",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "baidu.com",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"uuid": "00001026-0000-0000-0000-000000000000",
|
|
"service": 1,
|
|
"action": "manipulate",
|
|
"blacklist_option": 1,
|
|
"log_option": "all",
|
|
"action_parameter": {"protocol":"http","method":"block","code":403,"message":"error"},
|
|
"is_valid": "yes",
|
|
"and_conditions": [
|
|
{
|
|
"attribute_name": "ATTR_HTTP_REQ_HDR",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_KEYWORD",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "Chrome",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_HTTP_REQ_HDR",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_KEYWORD",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "uid=12345678",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"uuid": "00001028-0000-0000-0000-000000000000",
|
|
"service": 1,
|
|
"action": "manipulate",
|
|
"blacklist_option": 1,
|
|
"log_option": "all",
|
|
"action_parameter": {"protocol":"http","method":"block","code":403,"message":"error"},
|
|
"is_valid": "yes",
|
|
"and_conditions": [
|
|
{
|
|
"attribute_name": "ATTR_HTTP_URL",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_URL",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "bing.com",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"plugin_table": [
|
|
{
|
|
"table_name": "TRAFFIC_MIRRORING_PROFILE",
|
|
"table_content": [
|
|
{"uuid":"TRAFFIC0-MIRR-0000-0000-000000000001","vlan_ids":[1,2,3,4,5,6,7,8,9],"is_valid":1}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "RESPONSE_PAGE",
|
|
"table_content": [
|
|
{"uuid":"00000101-0000-0000-0000-000000000000","profile_name":"404","format":"html","path":"./resource/pangu/policy_file/404.html","is_valid":1,"modified_time":"1716531859000000"}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "PROXY_HIJACK_FILE",
|
|
"table_content": [
|
|
{"uuid":"00000201-0000-0000-0000-000000000000","profile_name":"chakanqi","content_name":"chakanqi-947KB.exe","content_type":"application/x-msdos-program","path":"./resource/pangu/policy_file/chakanqi-947KB.exe","is_valid":1,"modified_time":"1716531859000000"}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "PROXY_INJECT_SCRIPT",
|
|
"table_content": [
|
|
{"uuid":"00000301-0000-0000-0000-000000000000","profile_name":"time","format":"js","insert_on":"before_page_load","path":"./resource/pangu/policy_file/time.js","is_valid":1,"modified_time":"1716531859000000"}
|
|
]
|
|
},
|
|
{
|
|
"table_name": " DECRYPTION_PROFILE",
|
|
"table_content": [
|
|
{"uuid":"DECRYPT0-0000-0000-0000-000000000001","decryption":{"dynamic_bypass":{"ev_cert":0,"cert_transparency":0,"mutual_authentication":1,"cert_pinning":1,"protocol_errors":1,"trusted_root_cert_is_not_installed_on_client":1},"protocol_version":{"min":"ssl3","max":"ssl3","mirror_client":1,"allow_http2":1},"certificate_checks":{"approach":{"cn":1,"issuer":1,"self-signed":1,"expiration":0},"fail_action":"pass-through"}},"is_valid":1},
|
|
{"uuid":"DECRYPT0-0000-0000-0000-000000000003","decryption":{"dynamic_bypass":{"ev_cert":1,"cert_transparency":1,"mutual_authentication":1,"cert_pinning":1,"protocol_errors":1,"trusted_root_cert_is_not_installed_on_client":0},"protocol_version":{"min":"ssl3","max":"tls13","mirror_client":1,"allow_http2":1},"certificate_checks":{"approach":{"cn":1,"issuer":1,"self-signed":1,"expiration":1},"fail_action":"fail-close"}},"is_valid":1},
|
|
{"uuid":"DECRYPT0-0000-0000-0000-000000000004","decryption":{"dynamic_bypass":{"ev_cert":0,"cert_transparency":0,"mutual_authentication":0,"cert_pinning":0,"protocol_errors":0,"trusted_root_cert_is_not_installed_on_client":0},"protocol_version":{"min":"ssl3","max":"ssl3","mirror_client":0,"allow_http2":0},"certificate_checks":{"approach":{"cn":0,"issuer":0,"self-signed":0,"expiration":0},"fail_action":"pass-through"}},"is_valid":1}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "PXY_INTERCEPT_RULE",
|
|
"table_content": [
|
|
{"uuid":"INTERCEP-0000-0000-0000-000000000001","action":"intercept", "log_option":"none", "action_parameter":{"vsys_id":1,"keyring_for_trusted":"KERING00-TRUS-0000-0000-000000000001","keyring_for_untrusted":"KERING00-UNTR-0000-0000-000000000001","decryption_profile":"DECRYPT0-0000-0000-0000-000000000001","tcp_option_profile":"TCPOPT00-0000-0000-0000-000000000001","traffic_mirroring":{"enable":0}},"is_valid":1},
|
|
{"uuid":"INTERCEP-0000-0000-0000-000000000002","action":"intercept", "log_option":"none","action_parameter":{"vsys_id":1,"keyring_for_trusted":"KERING00-TRUS-0000-0000-000000000001","keyring_for_untrusted":"KERING00-UNTR-0000-0000-000000000001","decryption_profile":"DECRYPT0-0000-0000-0000-000000000001","tcp_option_profile":"TCPOPT00-0000-0000-0000-000000000001","traffic_mirroring":{"enable":1,"mirroring_profile":"TRAFFIC0-MIRR-0000-0000-000000000001"}},"is_valid":1}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "SERVICE_CHAINING_RULE",
|
|
"table_content": [
|
|
{"uuid":"SC000000-0000-0000-1111-000000000001","effective_range":{},"action_parameter":{"vsys_id":1,"targeted_traffic":"raw","sff_profiles":["00000000-0000-0000-2222-000000000001"]},"is_valid":1},
|
|
{"uuid":"SC000000-0000-0000-1111-000000000011","effective_range":{},"action_parameter":{"vsys_id":1,"targeted_traffic":"decrypted","sff_profiles":["00000000-0000-0000-2222-000000000001"]},"is_valid":1}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "PROXY_TCP_OPTION_PROFILE",
|
|
"table_content": [
|
|
{"uuid":"TCPOPT00-0000-0000-0000-000000000001","tcp_passthrough":0,"bypass_duplicated_packet":0,"client_side_conn_param":{"tcp_maxseg":{"enable":0,"maxseg":1500},"nodelay":1,"keep_alive":{"enable":1,"tcp_keepcnt":8,"tcp_keepidle":30,"tcp_keepintvl":15},"ttl":70,"user_timeout":{"enable":1,"timeout_ms":600}},"server_side_conn_param":{"tcp_maxseg":{"enable":0,"maxseg":1500},"nodelay":1,"keep_alive":{"enable":1,"tcp_keepcnt":8,"tcp_keepidle":30,"tcp_keepintvl":15},"ttl":70,"user_timeout":{"enable":1,"timeout_ms":600}},"is_valid":1}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "APP_ID_DICT",
|
|
"table_content": [
|
|
{"app_id":67,"object_uuid":"00000201-0000-0000-0000-000000000000","app_name":"http","is_valid":1},
|
|
{"app_id":68,"object_uuid":"00068000-0000-0000-0000-000000000000","app_name":"https","is_valid":1}
|
|
]
|
|
}
|
|
]
|
|
}
|