-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
58 lines (55 loc) · 966 Bytes
/
config.lua
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
local ANY = -1
local IPPROTO_UDP = 17
local IPPROTO_TCP = 6
local _config = {
delay_ms = 1000,
iface = "eth0",
filters = {
{
filter_num = 0,
enabled = 1,
ipproto = ANY,
src_ip = ANY,
dst_ip = ANY,
src_port = ANY,
dst_port = ANY
},
{
filter_num = 1,
enabled = 1,
ipproto = IPPROTO_TCP,
src_ip = ANY,
dst_ip = ANY,
src_port = ANY,
dst_port = ANY
},
{
filter_num = 2,
enabled = 1,
ipproto = IPPROTO_UDP,
src_ip = ANY,
dst_ip = ANY,
src_port = ANY,
dst_port = ANY
},
{
filter_num = 3,
enabled = 0,
ipproto = ANY,
src_ip = ANY,
dst_ip = ANY,
src_port = ANY,
dst_port = ANY
},
{
filter_num = 4,
enabled = 0,
ipproto = ANY,
src_ip = ANY,
dst_ip = ANY,
src_port = ANY,
dst_port = ANY
}
}
}
return _config