forked from snort3/snort3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnort.lua
More file actions
84 lines (65 loc) · 2.19 KB
/
Copy pathsnort.lua
File metadata and controls
84 lines (65 loc) · 2.19 KB
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
---------------------------------------------------------------------------
-- Snort++ configuration
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- setup environment
---------------------------------------------------------------------------
-- given:
-- export DIR=/install/path
-- configure --prefix=$DIR
-- make install
--
-- then:
-- export LUA_PATH=$DIR/include/snort/lua/?.lua\;\;
-- export SNORT_LUA_PATH=$DIR/conf/
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- setup the basics
---------------------------------------------------------------------------
require('snort_config') -- for loading
-- Setup the network addresses you are protecting
HOME_NET = 'any'
-- Set up the external network addresses.
-- (leave as "any" in most situations)
EXTERNAL_NET = 'any'
conf_dir = os.getenv('SNORT_LUA_PATH')
if ( not conf_dir ) then
conf_dir = '.'
end
dofile(conf_dir .. '/snort_defaults.lua')
dofile(conf_dir .. '/classification.lua')
dofile(conf_dir .. '/reference.lua')
---------------------------------------------------------------------------
-- configure modules
---------------------------------------------------------------------------
--
-- mod = { } uses internal defaults
-- you can see them with snort --help-module mod
-- comment or delete to disable mod functionality
--
-- you can also use default_ftp_server and default_wizard
---------------------------------------------------------------------------
-- uncomment ppm if you built with --enable-ppm
--ppm = { }
-- uncomment profile if you built with --enable-perfprofile
--profile = { }
-- uncomment normalizer if you are inline or not --pedantic
--normalizer = { }
stream = { }
stream_ip = { }
stream_icmp = { }
stream_tcp = { }
stream_udp = { }
perf_monitor = { }
arp_spoof = { }
back_orifice = { }
rpc_decode = { }
port_scan = { }
telnet = { }
-- use http_inspect or new_http_inspect (incomplete)
http_inspect = { }
--new_http_inspect = { }
ftp_server = default_ftp_server
ftp_client = { }
ftp_data = { }
wizard = default_wizard