282 lines
11 KiB
JSON
282 lines
11 KiB
JSON
{
|
|
"rule_table": "PXY_CTRL_RULE",
|
|
"object_group_table": "OBJECT_GROUP",
|
|
"rules": [
|
|
{
|
|
"uuid": "40c9c6a7-70a9-48ae-9fba-ec7966edd3c6",
|
|
"service": 1,
|
|
"action": "manipulate",
|
|
"blacklist_option": 1,
|
|
"log_option": "all",
|
|
"action_parameter": "anything",
|
|
"is_valid": "yes",
|
|
"and_conditions": [
|
|
{
|
|
"attribute_name": "ATTR_HTTP_URL",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_URL",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "test123456",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"uuid": "00600010-0000-0000-0000-000000000000",
|
|
"service": 1,
|
|
"action": "manipulate",
|
|
"blacklist_option": 1,
|
|
"log_option": "all",
|
|
"action_parameter": "anything",
|
|
"is_valid": "yes",
|
|
"and_conditions": [
|
|
{
|
|
"attribute_name": "ATTR_SOURCE_IP",
|
|
"objects": [
|
|
{
|
|
"object_name": "IPv4TCPSoureVeiryPolicy01",
|
|
"uuid": "00500100-0000-0000-0000-000000000000",
|
|
"items": [
|
|
{
|
|
"table_type": "ip",
|
|
"table_name": "TSG_OBJ_IP_ADDR",
|
|
"table_content": {
|
|
"ip": "192.168.55.4",
|
|
"port": "80"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_APP_ID",
|
|
"negate_option": false,
|
|
"object_uuids": [
|
|
"00000201-0000-0000-0000-000000000000"
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_HTTP_REQ_HDR",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_KEYWORD",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "test",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_IP_PROTOCOL",
|
|
"negate_option": false,
|
|
"object_uuids": [
|
|
"00000000-0000-0000-0000-000000000006"
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_SOURCE_PORT",
|
|
"objects": [
|
|
{
|
|
"object_name": "IPv4TCPPortVeiryPolicy01",
|
|
"uuid": "00500200-0000-0000-0000-000000000000",
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_PORT",
|
|
"table_type": "interval",
|
|
"table_content": {
|
|
"interval": "1-100"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_TUNNEL_LEVEL",
|
|
"negate_option": false,
|
|
"object_uuids": [
|
|
"00000000-0000-0000-0000-000000000050"
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_FLAG",
|
|
"objects": [
|
|
{
|
|
"object_name": "FlagVeiryPolicy01",
|
|
"uuid": "00500300-0000-0000-0000-000000000000",
|
|
"items": [
|
|
{
|
|
"table_type": "flag",
|
|
"table_name": "TSG_OBJ_FLAG",
|
|
"table_content": {
|
|
"flag": 15,
|
|
"mask": 15
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_SSL_ECH",
|
|
"negate_option": false,
|
|
"object_uuids": [
|
|
"00000000-0000-0000-0000-000000000002"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"uuid": "00000011-0000-0000-0000-000000000000",
|
|
"service": 1,
|
|
"action": "manipulate",
|
|
"blacklist_option": 1,
|
|
"log_option": "all",
|
|
"action_parameter": "anything",
|
|
"is_valid": "yes",
|
|
"and_conditions": [
|
|
{
|
|
"attribute_name": "ATTR_SOURCE_IP",
|
|
"negate_option": false,
|
|
"object_uuids": [
|
|
"00000070-0000-0000-0000-000000000000"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"uuid": "00000012-0000-0000-0000-000000000000",
|
|
"service": 1,
|
|
"action": "manipulate",
|
|
"blacklist_option": 1,
|
|
"log_option": "all",
|
|
"action_parameter": "anything",
|
|
"is_valid": "yes",
|
|
"and_conditions": [
|
|
{
|
|
"attribute_name": "ATTR_SOURCE_IP",
|
|
"objects": [
|
|
{
|
|
"object_name": "IPv4TCPSoureVeiryPolicy02",
|
|
"uuid": "00000101-0000-0000-0000-000000000000",
|
|
"items": [
|
|
{
|
|
"table_type": "ip",
|
|
"table_name": "TSG_OBJ_IP_ADDR",
|
|
"table_content": {
|
|
"ip": "192.168.0.2/32",
|
|
"port": "80"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_DESTINATION_IP",
|
|
"objects": [
|
|
{
|
|
"object_name": "IPv4TCPDestinationVeiryPolicy01",
|
|
"uuid": "00000102-0000-0000-0000-000000000000",
|
|
"items": [
|
|
{
|
|
"table_type": "ip",
|
|
"table_name": "TSG_OBJ_IP_ADDR",
|
|
"table_content": {
|
|
"ip": "192.168.0.3/32",
|
|
"port": "80"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_SERVER_FQDN",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_FQDN",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "baidu.com",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"attribute_name": "ATTR_SSL_SAN",
|
|
"objects": [
|
|
{
|
|
"items": [
|
|
{
|
|
"table_name": "TSG_OBJ_FQDN",
|
|
"table_type": "expr",
|
|
"table_content": {
|
|
"expression": "baidu.com",
|
|
"expr_type": "and"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"plugin_table": [
|
|
{
|
|
"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}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "IP_ADDR_ENTRY",
|
|
"table_content": [
|
|
{"uuid":"00000064-0000-0000-0000-000000000000","tag_uuids":["00000068-0000-0000-0000-000000000000","00000069-0000-0000-0000-000000000000"],"ip":"192.168.55.1/24","is_valid":1,"modified_time":"1716531859000000"},
|
|
{"uuid":"00000065-0000-0000-0000-000000000000","tag_uuids":["00000070-0000-0000-0000-000000000000"],"ip":"192.168.54.1/24","is_valid":1,"modified_time":"1716531859000000"}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "FQDN_ENTRY",
|
|
"table_content": [
|
|
{"uuid":"00000066-0000-0000-0000-000000000000","tag_uuids":["00000071-0000-0000-0000-000000000000"],"fqdn":"www.126.com","is_valid":1,"modified_time":"1716531859000000"},
|
|
{"uuid":"00000067-0000-0000-0000-000000000000","tag_uuids":["00000072-0000-0000-0000-000000000000"],"fqdn":"www.baidu.com","is_valid":1,"modified_time":"1716531859000000"}
|
|
]
|
|
},
|
|
{
|
|
"table_name": "LIBRARY_TAG",
|
|
"table_content": [
|
|
{"uuid":"00000068-0000-0000-0000-000000000000","statistics_option":"brief","category":"geoip_city","tag_key":"Country","tag_value":"China","is_valid":1,"modified_time":"1716531859000000"},
|
|
{"uuid":"00000069-0000-0000-0000-000000000000","statistics_option":"brief","category":"geoip_city","tag_key":"Country","tag_value":"China","is_valid":1,"modified_time":"1716531859000000"},
|
|
{"uuid":"00000070-0000-0000-0000-000000000000","statistics_option":"brief","category":"geoip_city","tag_key":"Country","tag_value":"China","is_valid":1,"modified_time":"1716531859000000"},
|
|
{"uuid":"00000071-0000-0000-0000-000000000000","statistics_option":"brief","category":"geoip_city","tag_key":"Country","tag_value":"China","is_valid":1,"modified_time":"1716531859000000"},
|
|
{"uuid":"00000072-0000-0000-0000-000000000000","statistics_option":"brief","category":"geoip_city","tag_key":"Country","tag_value":"China","is_valid":1,"modified_time":"1716531859000000"}
|
|
]
|
|
}
|
|
|
|
]
|
|
}
|