Dimitrios Mavrommatis | 0774a59 | 2017-12-21 14:57:52 -0800 | [diff] [blame] | 1 | [GLOBAL] |
| 2 | NUM_ADC_RULES = 5 |
| 3 | |
| 4 | ;FORMAT :: |
| 5 | ;ADC_TYPE : [ DOMAIN = 0 | IP = 1 | IP PREFIX =2 ] |
| 6 | ; |
| 7 | ;if ADC_TYPE = 0 |
| 8 | ; DOMAIN |
| 9 | ;elseif ADC_TYPE = 1 |
| 10 | ; IP |
| 11 | ;elseif ADC_TYPE = 2 |
| 12 | ; IP |
| 13 | ; PREFIX |
| 14 | ;else |
| 15 | ; NONE |
| 16 | ; |
| 17 | ;GATE_STATUS : DROP [ 0 if DROP, 1 otherwise ] |
| 18 | ;RATING_GROUP |
| 19 | ;SERVICE_ID |
| 20 | ;PRECEDENCE = 0x1ffffffe(536870910) - default value |
| 21 | ;MTR_PROFILE_INDEX |
| 22 | ;SPONSOR_ID |
| 23 | ;TARIFF_GROUP |
| 24 | ;TARIFF_TIME |
| 25 | ; |
| 26 | ;NOTE : |
| 27 | ;Rules defined first have a higher priority, unless DROP is specified |
| 28 | ;(i.e. multiple rules for the same IP). |
| 29 | ; |
| 30 | ;Set Meter profile index to 0 to skip the metering. |
| 31 | ; |
| 32 | ;When specifying DROP with an IP address, use a prefix of 32 to prevent DNS |
| 33 | ;results from overwriting rule. |
| 34 | |
| 35 | [ADC_RULE_0] |
| 36 | ADC_TYPE = 1 |
| 37 | IP = 13.1.1.111 |
| 38 | GATE_STATUS = 1 |
| 39 | RATING_GROUP = Zero-Rate |
| 40 | SERVICE_ID = Internet |
| 41 | PRECEDENCE = 536870910 |
| 42 | MTR_PROFILE_INDEX = 7 |
| 43 | SPONSOR = Example |
| 44 | |
| 45 | [ADC_RULE_1] |
| 46 | ADC_TYPE = 2 |
| 47 | IP = 13.1.1.112 |
| 48 | PREFIX = 24 |
| 49 | GATE_STATUS = 1 |
| 50 | RATING_GROUP = Zero-Rate |
| 51 | SERVICE_ID = Management |
| 52 | PRECEDENCE = 536870910 |
| 53 | MTR_PROFILE_INDEX = 7 |
| 54 | SPONSOR = Example |
| 55 | |
| 56 | [ADC_RULE_2] |
| 57 | ADC_TYPE = 1 |
| 58 | IP = 13.1.1.113 |
| 59 | GATE_STATUS = 1 |
| 60 | RATING_GROUP = Zero-Rate |
| 61 | SERVICE_ID = Provisioning |
| 62 | PRECEDENCE = 536870910 |
| 63 | MTR_PROFILE_INDEX = 7 |
| 64 | SPONSOR = Example |
| 65 | |
| 66 | [ADC_RULE_3] |
| 67 | ADC_TYPE = 0 |
| 68 | DOMAIN = www.example.gov |
| 69 | GATE_STATUS = 1 |
| 70 | RATING_GROUP = Zero-Rate |
| 71 | SERVICE_ID = Internet |
| 72 | PRECEDENCE = 536870910 |
| 73 | MTR_PROFILE_INDEX = 7 |
| 74 | SPONSOR = Example |
| 75 | |
| 76 | [ADC_RULE_4] |
| 77 | ADC_TYPE = 0 |
| 78 | DOMAIN = www.drop_example.com |
| 79 | GATE_STATUS = 0 |
| 80 | RATING_GROUP = 0 |
| 81 | SERVICE_ID = CIPA |
| 82 | PRECEDENCE = 536870910 |
| 83 | MTR_PROFILE_INDEX = 0 |
| 84 | SPONSOR = Example |
| 85 | |