summaryrefslogtreecommitdiff
path: root/bin/conf/maat_test.json
blob: 9be798c9fc5423d8faaacc3d9f993bf8f00ae410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
    "compile_table": "IR_POLICY_COMPILE",
    "group_table": "IR_POLICY_GROUP",
    "rules": [
		{
            "compile_id": 1,
            "service": 1,
            "action": 2,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "IR_STRATEGY:10001",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "group_1",
                    "regions": [
                        {
                            "table_name": "IR_POLICY_IP",
                            "table_type": "ip",
                            "table_content": {
                                "addr_type": "ipv4",
                                "src_ip": "172.18.1.13",
                                "mask_src_ip": "255.255.255.255",
                                "src_port": "0",
                                "mask_src_port": "65535",
                                "dst_ip": "0.0.0.0",
                                "mask_dst_ip": "255.255.255.255",
                                "dst_port": "0",
                                "mask_dst_port": "65535",
                                "protocol": 0,
                                "direction": "double"
                            }
                        }
                    ]
                }
            ]
        },
		{
            "compile_id": 2,
            "service": 1,
            "action": 2,
            "do_blacklist": 1,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "IR_STRATEGY:10002",
            "is_valid": "yes",
            "groups": [
                {
                    "group_name": "group_2",
                    "regions": [
                        {
                            "table_name": "IR_POLICY_IP",
                            "table_type": "ip",
                            "table_content": {
                                "addr_type": "ipv4",
                                "src_ip": "172.18.1.222",
                                "mask_src_ip": "255.255.255.255",
                                "src_port": "0",
                                "mask_src_port": "65535",
                                "dst_ip": "0.0.0.0",
                                "mask_dst_ip": "255.255.255.255",
                                "dst_port": "0",
                                "mask_dst_port": "65535",
                                "protocol": 0,
                                "direction": "double"
                            }
                        }
                    ]
                }
            ]
        }
    ],
    "plugin_table": [
        {
            "table_name": "IR_DYN_SIFT_IP_CB",
            "table_content": [
                "1\t4\t0\t192.168.10.222\t0\t2\tgdev_ip=10.0.6.195;\t0\t1\t2018-07-15"
            ]
        },
        {
            "table_name": "IR_STATIC_IP_POOL_CB",
            "table_content": [
                "1\t4\t0\t47.74.128.220\t0\t2\tgdev_ip=10.0.6.195;\t0\t1\t1\t1\t10001\t2018-07-15",
                "2\t4\t0\t192.168.10.222\t0\t2\tgdev_ip=10.0.6.195;\t0\t1\t1\t1\t10002\t2018-07-15"
            ]
        }
    ]
}