2023-11-28 00:21:43 +08:00
|
|
|
# Do not edit, automatically generated. See /usr/share/snort/templates.
|
|
|
|
{%
|
2024-01-11 00:10:05 +08:00
|
|
|
// Copyright (c) 2023-2024 Eric Fahlgren <eric.fahlgren@gmail.com>
|
2023-11-28 00:21:43 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
|
|
|
let queues = `${nfq.queue_start}-${int(nfq.queue_start)+int(nfq.queue_count)-1}`;
|
|
|
|
let chain_type = nfq.chain_type;
|
|
|
|
-%}
|
|
|
|
|
|
|
|
table inet snort {
|
|
|
|
chain {{ chain_type }}_{{ snort.mode }} {
|
|
|
|
type filter hook {{ chain_type }} priority {{ nfq.chain_priority }}
|
|
|
|
policy accept
|
2023-12-07 07:37:32 +08:00
|
|
|
{% if (nfq.include) {
|
|
|
|
// We use the ucode include here, so that the included file is also
|
|
|
|
// part of the template and can use values passed in from the config.
|
2024-01-11 00:10:05 +08:00
|
|
|
printf("\n\t\t" + rpad(`#-- Include from '${nfq.include}'`, ">", 64) + "\n");
|
2023-12-07 07:37:32 +08:00
|
|
|
include(nfq.include, { snort, nfq });
|
2024-01-11 00:10:05 +08:00
|
|
|
printf("\t\t" + rpad("#-- End of included file.", "<", 64) + "\n\n");
|
2023-12-07 07:37:32 +08:00
|
|
|
} %}
|
2023-11-28 00:21:43 +08:00
|
|
|
counter queue flags bypass to {{ queues }}
|
|
|
|
}
|
|
|
|
}
|