mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
(IDS) add Hyperscan pattern matching option, closes https://github.com/opnsense/core/issues/1050
This commit is contained in:
parent
9b4bd9d251
commit
a4956c0ff8
@ -17,6 +17,12 @@
|
||||
<type>checkbox</type>
|
||||
<help><![CDATA[Enable promiscuous mode, for certain setups (like IPS with vlans), this is required to actually capture data on the physical interface.]]></help>
|
||||
</field>
|
||||
<field>
|
||||
<id>ids.general.MPMAlgo</id>
|
||||
<label>Pattern matcher</label>
|
||||
<type>dropdown</type>
|
||||
<help><![CDATA[Choose the pattern matcher algoritm, default is Aho-Corasick.]]></help>
|
||||
</field>
|
||||
<field>
|
||||
<id>ids.general.interfaces</id>
|
||||
<label>Interfaces</label>
|
||||
|
||||
@ -136,6 +136,16 @@
|
||||
<MaximumValue>1000</MaximumValue>
|
||||
<ValidationMessage>Enter a valid number of logs to save</ValidationMessage>
|
||||
</AlertSaveLogs>
|
||||
<MPMAlgo type="OptionField">
|
||||
<Required>N</Required>
|
||||
<default>ac</default>
|
||||
<BlankDesc>Default</BlankDesc>
|
||||
<OptionValues>
|
||||
<ac>Aho-Corasick</ac>
|
||||
<hs>Hyperscan</hs>
|
||||
</OptionValues>
|
||||
<ValidationMessage>Please select a valid pattern matcher algorithm</ValidationMessage>
|
||||
</MPMAlgo>
|
||||
</general>
|
||||
</items>
|
||||
</model>
|
||||
|
||||
@ -474,7 +474,8 @@ cuda:
|
||||
# compiled with --enable-cuda: b2g_cuda. Make sure to update your
|
||||
# max-pending-packets setting above as well if you use b2g_cuda.
|
||||
|
||||
mpm-algo: ac
|
||||
mpm-algo: {% if helpers.exists('OPNsense.IDS.general') %} {{ OPNsense.IDS.general.MPMAlgo|default("ac")}} {% else %}ac{% endif %}
|
||||
|
||||
|
||||
# The memory settings for hash size of these algorithms can vary from lowest
|
||||
# (2048) - low (4096) - medium (8192) - high (16384) - higher (32768) - max
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user