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
fa047498
Commit
fa047498
authored
Jul 10, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter: different approach, fix gateways generation to include local routes
parent
f20f0c91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
filter.inc
src/etc/inc/filter.inc
+1
-1
FilterRule.php
...opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php
+0
-4
No files found.
src/etc/inc/filter.inc
View file @
fa047498
...
...
@@ -392,7 +392,7 @@ function filter_configure_sync($verbose = false)
}
// init interfaces and gateways
$fw
->
setInterfaceMapping
(
$cnfint
);
$fw
->
setGateways
(
return_gateways_array
());
$fw
->
setGateways
(
return_gateways_array
(
false
,
true
));
$fw
->
setGatewayGroups
(
return_gateway_groups_array
());
filter_core_bootstrap
(
$fw
);
...
...
src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php
View file @
fa047498
...
...
@@ -175,10 +175,6 @@ class FilterRule
{
if
(
!
empty
(
$this
->
gatewayMapping
[
$value
][
'logic'
]))
{
return
" "
.
$this
->
gatewayMapping
[
$value
][
'logic'
]
.
" "
;
}
elseif
(
$value
===
'Null4'
)
{
return
' route-to ( lo0 127.0.0.1 )'
;
}
elseif
(
$value
===
'Null6'
)
{
return
' route-to ( lo0 ::1 ) '
;
}
else
{
return
""
;
}
...
...
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