---------------------------------------------------------------------------
-- Snort++ prototype configuration
+---------------------------------------------------------------------------
+
+---------------------------------------------------------------------------
+-- setup environment
+---------------------------------------------------------------------------
--
-- let install_dir be a variable indicating where you installed Snort++.
-- then do:
-- export SNORT_LUA_PATH=$install_dir/conf/
---------------------------------------------------------------------------
+---------------------------------------------------------------------------
+-- setup the basics
+---------------------------------------------------------------------------
+
require('snort_config') -- for loading
-- Setup the network addresses you are protecting
---------------------------------------------------------------------------
-- configure modules
+---------------------------------------------------------------------------
+--
-- mod = { } uses internal defaults
-- you can see them with --help-module mod
-- comment or delete to disable mod functionality
+--
+-- you can also use default_ftp_server and default_wizard
---------------------------------------------------------------------------
ppm = { }
react = { }
reject = { }
-rewrite = { }
+--rewrite = { }
wizard = default_wizard
---------------------------------------------------------------------------
--- ips rules and filters
+-- define / load rules and filters
---------------------------------------------------------------------------
local_rules =
[[
# snort-classic comments, includes, and rules with $VARIABLES
-alert tcp any any -> any 80 ( http_method; content:"GET"; gid:1; sid:1000051)
+#alert tcp any any -> any 80 ( sid:1; http_method; content:"GET"; )
]]
ips =
--include = '../test.rules',
--include = 'rules/active.rules',
--rules = local_rules,
- enable_builtin_rules = true
+ --enable_builtin_rules = true
}
-- default wizard
---------------------------------------------------------------------------
-http_methods = { 'GIT', 'GET', 'POST', 'HEAD' } -- build from default_http_methods
+http_methods = { 'GET', 'POST', 'HEAD' } -- build from default_http_methods
ftp_commands = { 'USER' } -- add others
sip_methods = { 'INVITE', 'NOTIFY' } -- add others
isakmp_hex = { '?????????????????|01|', '?????????????????|10|' }
to_server = telnet_commands, to_client = telnet_commands },
}
}
+