---------------------------------------------------------------------------
-- 1. configure defaults
---------------------------------------------------------------------------
-- Set the networks you are protecting (required)
HOME_NET = 'any'
EXTERNAL_NET = 'any'
include 'snort_defaults.lua'
---------------------------------------------------------------------------
-- 2. configure inspection
---------------------------------------------------------------------------
-- An empty table enables the module with internal defaults.
-- Use snort --help-module <name> to see those defaults.
stream = { } -- enable stream reassembly
stream_tcp = { } -- TCP stream tracking
stream_ip = { } -- IP fragment reassembly
stream_icmp = { }
stream_udp = { }
stream_user = { }
stream_file = { }
normalizer = { } -- normalize traffic for detection
dns = { }
imap = { }
http_inspect = { }
http2_inspect = { }
ssl = { }
ssh = { }
telnet = { }
-- Some inspectors use defaults defined in snort_defaults.lua
gtp_inspect = default_gtp
port_scan = default_med_port_scan
smtp = default_smtp
ftp_server = default_ftp_server
---------------------------------------------------------------------------
-- 3. configure bindings
---------------------------------------------------------------------------
wizard = default_wizard
binder =
{
{ when = { proto = 'tcp', ports = '53', role='server' }, use = { type = 'dns' } },
{ when = { service = 'http' }, use = { type = 'http_inspect' } },
{ when = { service = 'smtp' }, use = { type = 'smtp' } },
-- ... (see Binder page for the full list)
{ use = { type = 'wizard' } } -- fallback: autodetect everything else
}
---------------------------------------------------------------------------
-- 4. configure performance
---------------------------------------------------------------------------
-- Uncomment to enable latency enforcement, profiling, or runtime metrics
-- latency = { }
-- profiler = { }
-- perf_monitor = { }
---------------------------------------------------------------------------
-- 5. configure detection
---------------------------------------------------------------------------
references = default_references
classifications = default_classifications
ips =
{
-- enable_builtin_rules = true, -- decoder/inspector alerts
variables = default_variables -- HOME_NET, HTTP_PORTS, etc.
}
---------------------------------------------------------------------------
-- 6. configure filters
---------------------------------------------------------------------------
-- suppress = { { gid = 1, sid = 1 } }
-- event_filter = { ... }
-- rate_filter = { ... }
---------------------------------------------------------------------------
-- 7. configure outputs
---------------------------------------------------------------------------
-- alert_fast = { }
-- unified2 = { }
---------------------------------------------------------------------------
-- 8. configure tweaks
---------------------------------------------------------------------------
-- Load an optional tweaks file passed via --tweaks on the command line.
if ( tweaks ~= nil ) then
include(tweaks .. '.lua')
end