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
8de70201
Commit
8de70201
authored
Jun 10, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ids) add syslog settings, related to
https://github.com/opnsense/core/issues/997
parent
5399370d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
generalSettings.xml
...vc/app/controllers/OPNsense/IDS/forms/generalSettings.xml
+12
-0
IDS.xml
src/opnsense/mvc/app/models/OPNsense/IDS/IDS.xml
+17
-0
newsyslog.conf
src/opnsense/service/templates/OPNsense/IDS/newsyslog.conf
+3
-1
No files found.
src/opnsense/mvc/app/controllers/OPNsense/IDS/forms/generalSettings.xml
View file @
8de70201
...
...
@@ -25,4 +25,16 @@
<help>
<![CDATA[Select interface(s) to use. When enabling IPS, only use physical interfaces here (no vlans etc).]]>
</help>
<hint>
Type or select interface.
</hint>
</field>
<field>
<id>
ids.general.AlertLogrotate
</id>
<label>
Rotate log
</label>
<type>
dropdown
</type>
<help>
<![CDATA[Rotate alert logs at provided interval.]]>
</help>
</field>
<field>
<id>
ids.general.AlertSaveLogs
</id>
<label>
Save logs
</label>
<type>
text
</type>
<help>
<![CDATA[Number of logs to keep.]]>
</help>
</field>
</form>
src/opnsense/mvc/app/models/OPNsense/IDS/IDS.xml
View file @
8de70201
...
...
@@ -119,6 +119,23 @@
<ValidationMessage>
Related cron not found.
</ValidationMessage>
<Required>
N
</Required>
</UpdateCron>
<AlertLogrotate
type=
"OptionField"
>
<Required>
N
</Required>
<default>
W0D23
</default>
<BlankDesc>
Default
</BlankDesc>
<OptionValues>
<W0D23>
Weekly
</W0D23>
<D0>
Daily
</D0>
</OptionValues>
<ValidationMessage>
Please select a valid rotation
</ValidationMessage>
</AlertLogrotate>
<AlertSaveLogs
type=
"IntegerField"
>
<Required>
N
</Required>
<default>
4
</default>
<MinimumValue>
1
</MinimumValue>
<MaximumValue>
1000
</MaximumValue>
<ValidationMessage>
Enter a valid number of logs to save
</ValidationMessage>
</AlertSaveLogs>
</general>
</items>
</model>
src/opnsense/service/templates/OPNsense/IDS/newsyslog.conf
View file @
8de70201
...
...
@@ -2,5 +2,7 @@
{%
if
helpers
.
exists
(
'OPNsense.IDS.general'
)
and
OPNsense
.
IDS
.
general
.
enabled
|
default
(
"0"
) ==
"1"
%}
/
var
/
log
/
suricata
/
stats
.
log
root
:
wheel
640
7
* $
D0
B
/
var
/
run
/
suricata
.
pid
1
/
var
/
log
/
suricata
.
log
root
:
wheel
640
7
* $
D0
B
/
var
/
run
/
suricata
.
pid
1
/
var
/
log
/
suricata
/
eve
.
json
root
:
wheel
640
4
* $
W0D23
B
/
var
/
run
/
suricata
.
pid
1
/
var
/
log
/
suricata
/
eve
.
json
root
:
wheel
640
{{
OPNsense
.
IDS
.
general
.
AlertSaveLogs
|
default
(
"4"
) }} * ${{
OPNsense
.
IDS
.
general
.
AlertLogrotate
|
default
(
"W0D23"
)
}}
B
/
var
/
run
/
suricata
.
pid
1
{%
endif
%}
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