mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
(ids) add geoip ui parts
This commit is contained in:
parent
c0d4c4be5a
commit
4c5a093b33
@ -7,10 +7,23 @@
|
||||
</field>
|
||||
<field>
|
||||
<id>rule.fingerprint</id>
|
||||
<label>Fingerprint</label>
|
||||
<label>SSL/Fingerprint</label>
|
||||
<type>text</type>
|
||||
<help>the SSL fingerprint, for example B5:E1:B3:70:5E:7C:FF:EB:92:C4:29:E5:5B:AC:2F:AE:70:17:E9:9E</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rule.country</id>
|
||||
<label>GeoIP/Country</label>
|
||||
<type>select_multiple</type>
|
||||
<style>tokenize</style>
|
||||
<help>Countries to alert or block using GeoIP</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rule.geoip_direction</id>
|
||||
<label>GeoIP/Direction</label>
|
||||
<type>dropdown</type>
|
||||
<help>Connections coming from (src) or going to (dst) listed countries, default (none) selects both </help>
|
||||
</field>
|
||||
<field>
|
||||
<id>rule.action</id>
|
||||
<label>Action</label>
|
||||
|
||||
@ -36,6 +36,19 @@
|
||||
<mask>/^([0-9a-fA-F:]){59,59}$/u</mask>
|
||||
<ValidationMessage>A SSL fingerprint should be a 59 character long hex value</ValidationMessage>
|
||||
</fingerprint>
|
||||
<geoip type="CountryField">
|
||||
<Required>N</Required>
|
||||
<Multiple>Y</Multiple>
|
||||
<AddInverted>Y</AddInverted>
|
||||
</geoip>
|
||||
<geoip_direction type="OptionField">
|
||||
<Required>N</Required>
|
||||
<default>both</default>
|
||||
<OptionValues>
|
||||
<src>source</src>
|
||||
<dst>destination</dst>
|
||||
</OptionValues>
|
||||
</geoip_direction>
|
||||
<description type="TextField">
|
||||
<Required>Y</Required>
|
||||
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.\-,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user