Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
4c5a093b
Commit
4c5a093b
authored
Feb 03, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ids) add geoip ui parts
parent
c0d4c4be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
dialogUserDefined.xml
.../app/controllers/OPNsense/IDS/forms/dialogUserDefined.xml
+14
-1
IDS.xml
src/opnsense/mvc/app/models/OPNsense/IDS/IDS.xml
+13
-0
No files found.
src/opnsense/mvc/app/controllers/OPNsense/IDS/forms/dialogUserDefined.xml
View file @
4c5a093b
...
@@ -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>
...
...
src/opnsense/mvc/app/models/OPNsense/IDS/IDS.xml
View file @
4c5a093b
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment