-
Notifications
You must be signed in to change notification settings - Fork 3
/
tariffs.conf.sample
71 lines (60 loc) · 1.83 KB
/
tariffs.conf.sample
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
%%%
%%% Netspire mod_iptraffic sample tariffs
%%%
{plans,
[{"Ultimate", [
{"Incoming HTTP Day", 1},
{"Incoming HTTP Night", 1},
{"Incoming Day", 1},
{"Incoming Night", 1},
{"Outgoing Day", 5},
{"Outgoing", 0},
{"Local In", 0},
{"Local Out", 0}
]},
{"Daylight", [
{"Incoming HTTP Day", 0.5},
{"Incoming HTTP Night", 1.7},
{"Incoming Day", 0.5},
{"Incoming Night", 2},
{"Outgoing", 0},
{"Local In", 0},
{"Local Out", 0}
]}]}.
%% First matching rule wins
{classes,
[{"Local In", "All Day", in, [
[{src, [{net, "10.10.0.0/255.255.255.0"}]},
{dst, [{net, "10.10.0.0/255.255.255.0"}]}]]},
{"Local Out", "All Day", out, [
[{src, [{net, "10.10.0.0/24"}]},
{dst, [{net, "10.10.0.0/24"}]}]]},
{"Incoming HTTP Day", "Day", [
[{src, [{net, "0.0.0.0/0"}, {port, 80}]},
{dst, [{net, "10.10.0.0/24"}]},
{proto, tcp}
]]},
{"Incoming HTTP Night", "Night", [
[{src, [{net, "0.0.0.0/0"}, {port, 80}]},
{dst, [{net, "10.10.0.0/16"}]},
{proto, tcp}
]]},
{"Incoming Day", "Day", [
[{src, [{net, "0.0.0.0/0"}]},
{dst, [{net, "10.10.0.0/16"}]}]]},
{"Incoming Night", "Night", [
[{src, [{net, "0.0.0.0/0"}]},
{dst, [{net, "10.10.0.0/255.255.0.0"}]}]]},
{"Outgoing Day", "Day", [
[{src, [{net, "10.10.0.0/16"}]},
{dst, [{net, "0.0.0.0/0"}]}]]},
{"Outgoing", "All Day", [
[{src, [{net, "10.10.0.0/16"}]},
{dst, [{net, "0.0.0.0/0"}]}]]}
]}.
{periods,
[{"All Day", "00:00:00-23:59:59"},
{"Weekends", [6, 7], "00:00:00-23:59:59"},
{"Night", "22:00:00-08:00:00"},
{"Day", "08:00:00-21:59:59"}
]}.