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,5 +1,8 @@
1 MATT_CONFIG_COMPILE compile GBK GBK no 0
#2 MATT_CONFIG_GROUP group GBK GBK no 0
3 IP_BMD ip GBK GBK no 0
4 USER_AREA ip GBK GBK no 0
5 SNI_BMD expr GBK GBK yes 0
1 WHITE_LIST_COMPILE compile GBK GBK no 0
1 PXY_INTERCEPT_COMPILE compile GBK GBK no 0
2 WHITE_LIST_GROUP group GBK GBK no 0
2 PXY_INTERCEPT_GROUP group GBK GBK no 0
3 WHITE_LIST_IP ip GBK GBK no 0
3 PXY_INTERCEPT_IP ip GBK GBK no 0
4 WHITE_LIST_DOMAIN expr GBK GBK yes 0
4 PXY_INTERCEPT_DOMAIN expr GBK GBK yes 0

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"

View File

@@ -1,3 +0,0 @@
0000000002
0 1 1
1 2 1

View File

@@ -1,2 +0,0 @@
0000000001
0 0 4 192.168.11.199 255.255.255.255 0 65535 0.0.0.0 255.255.255.255 0 65535 0 0 1

View File

@@ -1,3 +0,0 @@
0000000002
1 1 2 1 1 0 anything 1
2 48 2 1 1 0 anything 1

View File

@@ -1,2 +0,0 @@
0000000001
1 1 www.baidu.com 2 0 0 1

View File

@@ -1,4 +0,0 @@
MATT_CONFIG_COMPILE 2 ./kniconf/maat_test.json_iris_tmp/MATT_CONFIG_COMPILE.local
2 ./kniconf/maat_test.json_iris_tmp/.local
IP_BMD 1 ./kniconf/maat_test.json_iris_tmp/IP_BMD.local
SNI_BMD 1 ./kniconf/maat_test.json_iris_tmp/SNI_BMD.local