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
f326e38c
Commit
f326e38c
authored
Aug 28, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter: rip out an unused table
parent
74e3d1f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
21 deletions
+4
-21
filter.inc
src/etc/inc/filter.inc
+2
-7
upgrade_config.inc
src/etc/inc/upgrade_config.inc
+2
-13
guiconfig.inc
src/www/guiconfig.inc
+0
-1
No files found.
src/etc/inc/filter.inc
View file @
f326e38c
...
...
@@ -526,12 +526,11 @@ function filter_generate_aliases()
}
}
$aliases
.=
"
\n
#SSH Lockout Table
\n
"
;
$aliases
.=
"
\n
#
SSH Lockout Table
\n
"
;
$aliases
.=
"table <sshlockout> persist
\n
"
;
$aliases
.=
"table <webConfiguratorlockout> persist
\n
"
;
$aliases
.=
"#Snort tables
\n
"
;
$aliases
.=
"table <snort2c>
\n
"
;
$aliases
.=
"# Other tables
\n
"
;
$aliases
.=
"table <virusprot>
\n
"
;
touch
(
'/usr/local/etc/bogons'
);
touch
(
'/usr/local/etc/bogonsv6'
);
...
...
@@ -2680,10 +2679,6 @@ block {$log['block']} quick inet proto { tcp, udp } from any to any port = 0
block {$log['block']} quick inet6 proto { tcp, udp } from any port = 0 to any
block {$log['block']} quick inet6 proto { tcp, udp } from any to any port = 0
# Snort package
block {$log['block']} quick from <snort2c> to any label "Block snort2c hosts"
block {$log['block']} quick from any to <snort2c> label "Block snort2c hosts"
EOD;
...
...
src/etc/inc/upgrade_config.inc
View file @
f326e38c
...
...
@@ -501,7 +501,8 @@ function upgrade_024_to_025() {
unset
(
$config
[
'system'
][
'use_rrd_gateway'
]);
}
function
upgrade_025_to_026
()
{
function
upgrade_025_to_026
()
{
global
$config
;
$cron_item
=
array
();
$cron_item
[
'minute'
]
=
"0"
;
...
...
@@ -568,20 +569,8 @@ function upgrade_025_to_026() {
$cron_item
[
'command'
]
=
"/usr/local/sbin/expiretable -v -t 3600 virusprot"
;
$config
[
'cron'
][
'item'
][]
=
$cron_item
;
$cron_item
=
array
();
$cron_item
[
'minute'
]
=
"*/60"
;
$cron_item
[
'hour'
]
=
"*"
;
$cron_item
[
'mday'
]
=
"*"
;
$cron_item
[
'month'
]
=
"*"
;
$cron_item
[
'wday'
]
=
"*"
;
$cron_item
[
'who'
]
=
"root"
;
$cron_item
[
'command'
]
=
"/usr/local/sbin/expiretable -t 1800 snort2c"
;
$config
[
'cron'
][
'item'
][]
=
$cron_item
;
}
function
upgrade_028_to_029
()
{
global
$config
;
$rule_item
=
array
();
...
...
src/www/guiconfig.inc
View file @
f326e38c
...
...
@@ -85,7 +85,6 @@ $reserved_table_names = array(
"bogons"
,
"bogonsv6"
,
"negate_networks"
,
"snort2c"
,
"sshlockout"
,
"tonatsubnets"
,
"virusprot"
,
...
...
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