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
72ea5ef9
Commit
72ea5ef9
authored
Nov 27, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter: obvious candidate for $FilterIflist passing
(cherry picked from commit
fd40bd4f
)
parent
1a0989d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
filter.inc
src/etc/inc/filter.inc
+3
-3
No files found.
src/etc/inc/filter.inc
View file @
72ea5ef9
...
@@ -191,7 +191,7 @@ function filter_configure_sync($delete_states_if_needed = true)
...
@@ -191,7 +191,7 @@ function filter_configure_sync($delete_states_if_needed = true)
update_filter_reload_status
(
gettext
(
"Generating Limiter rules"
));
update_filter_reload_status
(
gettext
(
"Generating Limiter rules"
));
update_filter_reload_status
(
gettext
(
"Generating NAT rules"
));
update_filter_reload_status
(
gettext
(
"Generating NAT rules"
));
/* generate nat rules */
/* generate nat rules */
$natrules
=
filter_nat_rules_generate
();
$natrules
=
filter_nat_rules_generate
(
$FilterIflist
);
if
(
file_exists
(
"/var/run/booting"
))
{
if
(
file_exists
(
"/var/run/booting"
))
{
echo
"."
;
echo
"."
;
}
}
...
@@ -1635,9 +1635,9 @@ function filter_nat_rules_generate_if($if, $src = "any", $srcport = "", $dst = "
...
@@ -1635,9 +1635,9 @@ function filter_nat_rules_generate_if($if, $src = "any", $srcport = "", $dst = "
return
$natrule
;
return
$natrule
;
}
}
function
filter_nat_rules_generate
()
{
function
filter_nat_rules_generate
(
&
$FilterIflist
)
{
global
$config
,
$g
,
$after_filter_configure_run
,
$GatewaysList
,
$aliases
;
global
$config
,
$g
,
$after_filter_configure_run
,
$GatewaysList
,
$aliases
;
$FilterIflist
=
filter_generate_optcfg_array
()
;
$natrules
=
"no nat proto carp
\n
"
;
$natrules
=
"no nat proto carp
\n
"
;
$natrules
.=
"no rdr proto carp
\n
"
;
$natrules
.=
"no rdr proto carp
\n
"
;
...
...
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