summaryrefslogtreecommitdiff
path: root/conf/shaping_maat.json
blob: ad01d583082ab66cb2d10860ef88886aef93c2e0 (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
{
    "compile_table": "TRAFFIC_SHAPING_COMPILE",
    "group2compile_table": "GROUP_SHAPING_COMPILE_RELATION",
    "group2group_table": "GROUP_GROUP_RELATION",
    "rules": [
        {
            "compile_id": 182,
            "service": 2,
            "action": 32,
            "do_blacklist": 0,
            "do_log": 1,
            "effective_rage": 0,
            "user_region": "{\"priority\":1,\"fair_factor\":10,\"profile_chain\":[1]}",
            "group_num" : 0,
            "is_valid": "yes",
            "groups": [
                {
		            "group_name":"OBJ_SRC_IP_ADDR",
                    "virtual_table":"TSG_SECURITY_SOURCE_ADDR",
                    "not_flag" : 0,
                    "regions": [
                        {
                            "table_name": "TSG_OBJ_IP_ADDR",
                            "table_type": "ip_plus",
                            "table_content": {
				"saddr_format": "range",
                                "addr_type": "ipv4",
                                "src_ip1": "192.168.50.67",
                                "src_ip2": "192.168.50.67",
			        "sport_format": "range",
                                "src_port1": "0",
                                "src_port2": "65535",
                                "protocol": 0,
                                "direction": "double"
                            }
                        }
                    ]
                },
                {
                    "group_name":"OBJ_DST_IP_ADDR",
                    "virtual_table":"TSG_SECURITY_DESTINATION_ADDR",
                    "not_flag" : 0,
                    "regions": [
                        {
                            "table_name": "TSG_OBJ_IP_ADDR",
                            "table_type": "ip_plus",
                            "table_content": {
                                "saddr_format": "range",
                                "addr_type": "ipv4",
                                "src_ip1": "192.168.42.43",
                                "src_ip2": "192.168.42.43",
                                "sport_format": "range",
                                "src_port1": "5678",
                                "src_port2": "5678",
                                "protocol": 0,
                                "direction": "double"
                            }
                        }
                    ]
                }

            ]    
        }
    ],
    "plugin_table": [
        {
            "table_name": "TRAFFIC_SHAPING_PROFILE",
            "table_content": [
                "1\t{\"value\":\"local_host\",\"host_fairness\":1}\t[{\"direction\":\"incoming\",\"bandwidth\":102400},{\"direction\":\"outcoming\",\"bandwidth\":102400}]\t{\"enabled\":1,\"algorithm\":\"codel\"}\tnull\t{}\t1",
                "3\t{\"value\":\"local_host\",\"host_fairness\":1}\t[{\"direction\":\"incoming\",\"bandwidth\":10240},{\"direction\":\"outcoming\",\"bandwidth\":10240}]\t{\"enabled\":1,\"algorithm\":\"codel\"}\tnull\t{}\t1",
                "4\t{\"value\":\"local_host\",\"host_fairness\":1}\t[{\"direction\":\"incoming\",\"bandwidth\":10240},{\"direction\":\"outcoming\",\"bandwidth\":10240}]\t{\"enabled\":1,\"algorithm\":\"codel\"}\tnull\t{}\t1",
                "5\t{\"value\":\"local_host\",\"host_fairness\":1}\t[{\"direction\":\"incoming\",\"bandwidth\":10240},{\"direction\":\"outcoming\",\"bandwidth\":10240}]\t{\"enabled\":1,\"algorithm\":\"codel\"}\tnull\t{}\t1",
                "6\t{\"value\":\"local_host\",\"host_fairness\":1}\t[{\"direction\":\"incoming\",\"bandwidth\":10240},{\"direction\":\"outcoming\",\"bandwidth\":10240}]\t{\"enabled\":1,\"algorithm\":\"codel\"}\tnull\t{}\t1"
            ]
        }
    ]
}