Commit 4c5a093b authored by Ad Schellevis's avatar Ad Schellevis

(ids) add geoip ui parts

parent c0d4c4be
...@@ -7,10 +7,23 @@ ...@@ -7,10 +7,23 @@
</field> </field>
<field> <field>
<id>rule.fingerprint</id> <id>rule.fingerprint</id>
<label>Fingerprint</label> <label>SSL/Fingerprint</label>
<type>text</type> <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> <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>
<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> <field>
<id>rule.action</id> <id>rule.action</id>
<label>Action</label> <label>Action</label>
......
...@@ -36,6 +36,19 @@ ...@@ -36,6 +36,19 @@
<mask>/^([0-9a-fA-F:]){59,59}$/u</mask> <mask>/^([0-9a-fA-F:]){59,59}$/u</mask>
<ValidationMessage>A SSL fingerprint should be a 59 character long hex value</ValidationMessage> <ValidationMessage>A SSL fingerprint should be a 59 character long hex value</ValidationMessage>
</fingerprint> </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"> <description type="TextField">
<Required>Y</Required> <Required>Y</Required>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.\-,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask> <mask>/^([\t\n\v\f\r 0-9a-zA-Z.\-,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
......
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