security/maltrail: add whitelist support (#1447)

This commit is contained in:
Michael
2019-08-12 09:28:39 +03:00
committed by Franco Fichtner
parent 764b6775e2
commit 89fe16b3f2
4 changed files with 15 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ Changelog
1.1
* Add a note in General tab
* Add whitelisting support
1.0
@@ -23,4 +23,12 @@
<type>select_multiple</type>
<help>List of interface to listen on, none means listen on all interfaces.</help>
</field>
<field>
<id>general.whitelist</id>
<label>Whitelist</label>
<type>select_multiple</type>
<style>tokenize</style>
<allownew>true</allownew>
<help>Here you can whitelist IP addresses or domains.</help>
</field>
</form>
@@ -19,5 +19,8 @@
<multiple>Y</multiple>
<Required>N</Required>
</monitorinterface>
<whitelist type="CSVListField">
<Required>N</Required>
</whitelist>
</items>
</model>
@@ -38,6 +38,9 @@ USE_HEURISTICS true
USE_HEURISTICS false
{% endif %}
CHECK_MISSING_HOST false
{% if helpers.exists('OPNsense.maltrail.general.whitelist') and OPNsense.maltrail.general.whitelist != '' %}
USER_WHITELIST {{ OPNsense.maltrail.general.whitelist }}
{% endif %}
CHECK_HOST_DOMAINS false
SHOW_DEBUG false
LOG_DIR /var/log/maltrail