Commit a4956c0f authored by Ad Schellevis's avatar Ad Schellevis

(IDS) add Hyperscan pattern matching option, closes https://github.com/opnsense/core/issues/1050

parent 9b4bd9d2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment