20180712:

调整配置库表名称,根据action决定处理动作:
1、命中whitelist:回注不再处理
2、命中reject:进行业务处理
3、default:回注不再处理
This commit is contained in:
liuyang
2018-07-12 17:49:00 +08:00
parent 2a4832a48f
commit 39d12fa2aa
9 changed files with 90 additions and 89 deletions

View File

@@ -1,11 +1,11 @@
{
"compile_table": "MATT_CONFIG_COMPILE",
"group_table": "MATT_CONFIG_GROUP",
"compile_table": "WHITE_LIST_COMPILE",
"group_table": "WHITE_LIST_GROUP",
"rules": [
{
"compile_id": 1,
"service": 1,
"action": 2,
"action":128,
"do_blacklist": 1,
"do_log": 1,
"effective_rage": 0,
@@ -16,11 +16,11 @@
"group_name": "group_1",
"regions": [
{
"table_name": "IP_BMD",
"table_name": "WHITE_LIST_IP",
"table_type": "ip",
"table_content": {
"addr_type": "ipv4",
"src_ip": "192.168.11.199",
"src_ip": "192.168.10.1",
"mask_src_ip": "255.255.255.255",
"src_port": "0",
"mask_src_port": "65535",
@@ -39,7 +39,7 @@
{
"compile_id": 2,
"service": 48,
"action": 2,
"action": 128,
"do_blacklist": 1,
"do_log": 1,
"effective_rage": 0,
@@ -50,10 +50,10 @@
"group_name": "group_2",
"regions": [
{
"table_name": "SNI_BMD",
"table_name": "WHITE_LIST_DOMAIN",
"table_type": "string",
"table_content": {
"keywords": "www.baidu.com",
"keywords": "baidu",
"expr_type": "regex",
"match_method": "sub",
"format":"uncase plain"