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
6d2e211e
Commit
6d2e211e
authored
Aug 03, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: removed NAT+proxy, this option is unused
(cherry picked from commit
e24d1970
)
parent
072bc535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
system_advanced_firewall.php
src/www/system_advanced_firewall.php
+0
-16
No files found.
src/www/system_advanced_firewall.php
View file @
6d2e211e
...
@@ -65,7 +65,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -65,7 +65,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
$pconfig
[
'enablebinatreflection'
]
=
!
empty
(
$config
[
'system'
][
'enablebinatreflection'
]);
$pconfig
[
'enablebinatreflection'
]
=
!
empty
(
$config
[
'system'
][
'enablebinatreflection'
]);
$pconfig
[
'enablenatreflectionhelper'
]
=
isset
(
$config
[
'system'
][
'enablenatreflectionhelper'
])
?
$config
[
'system'
][
'enablenatreflectionhelper'
]
:
null
;
$pconfig
[
'enablenatreflectionhelper'
]
=
isset
(
$config
[
'system'
][
'enablenatreflectionhelper'
])
?
$config
[
'system'
][
'enablenatreflectionhelper'
]
:
null
;
$pconfig
[
'reflectiontimeout'
]
=
!
empty
(
$config
[
'system'
][
'reflectiontimeout'
])
?
$config
[
'system'
][
'reflectiontimeout'
]
:
null
;
$pconfig
[
'bypassstaticroutes'
]
=
isset
(
$config
[
'filter'
][
'bypassstaticroutes'
]);
$pconfig
[
'bypassstaticroutes'
]
=
isset
(
$config
[
'filter'
][
'bypassstaticroutes'
]);
$pconfig
[
'disablevpnrules'
]
=
isset
(
$config
[
'system'
][
'disablevpnrules'
]);
$pconfig
[
'disablevpnrules'
]
=
isset
(
$config
[
'system'
][
'disablevpnrules'
]);
}
elseif
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'POST'
)
{
}
elseif
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'POST'
)
{
...
@@ -92,9 +91,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -92,9 +91,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if
(
!
empty
(
$pconfig
[
'maximumtableentries'
])
&&
!
is_numericint
(
$pconfig
[
'maximumtableentries'
]))
{
if
(
!
empty
(
$pconfig
[
'maximumtableentries'
])
&&
!
is_numericint
(
$pconfig
[
'maximumtableentries'
]))
{
$input_errors
[]
=
gettext
(
"The Firewall Maximum Table Entries value must be an integer."
);
$input_errors
[]
=
gettext
(
"The Firewall Maximum Table Entries value must be an integer."
);
}
}
if
(
!
empty
(
$pconfig
[
'reflectiontimeout'
])
&&
!
is_numericint
(
$pconfig
[
'reflectiontimeout'
]))
{
$input_errors
[]
=
gettext
(
"The Reflection timeout must be an integer."
);
}
if
(
count
(
$input_errors
)
==
0
)
{
if
(
count
(
$input_errors
)
==
0
)
{
if
(
!
empty
(
$pconfig
[
'lb_use_sticky'
]))
{
if
(
!
empty
(
$pconfig
[
'lb_use_sticky'
]))
{
...
@@ -174,7 +170,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -174,7 +170,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$config
[
'system'
][
'maximumstates'
]
=
$pconfig
[
'maximumstates'
];
$config
[
'system'
][
'maximumstates'
]
=
$pconfig
[
'maximumstates'
];
$config
[
'system'
][
'aliasesresolveinterval'
]
=
$pconfig
[
'aliasesresolveinterval'
];
$config
[
'system'
][
'aliasesresolveinterval'
]
=
$pconfig
[
'aliasesresolveinterval'
];
$config
[
'system'
][
'maximumtableentries'
]
=
$pconfig
[
'maximumtableentries'
];
$config
[
'system'
][
'maximumtableentries'
]
=
$pconfig
[
'maximumtableentries'
];
$config
[
'system'
][
'reflectiontimeout'
]
=
$pconfig
[
'reflectiontimeout'
];
if
(
!
empty
(
$pconfig
[
'bypassstaticroutes'
]))
{
if
(
!
empty
(
$pconfig
[
'bypassstaticroutes'
]))
{
$config
[
'filter'
][
'bypassstaticroutes'
]
=
$pconfig
[
'bypassstaticroutes'
];
$config
[
'filter'
][
'bypassstaticroutes'
]
=
$pconfig
[
'bypassstaticroutes'
];
...
@@ -285,17 +280,6 @@ include("head.inc");
...
@@ -285,17 +280,6 @@ include("head.inc");
</div>
</div>
</td>
</td>
</tr>
</tr>
<tr>
<td><a
id=
"help_for_reflectiontimeout"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Reflection Timeout"
);
?>
</td>
<td>
<input
name=
"reflectiontimeout"
type=
"text"
value=
"
<?=
$pconfig
[
'reflectiontimeout'
];
?>
"
/>
<div
class=
"hidden"
for=
"help_for_reflectiontimeout"
>
<strong>
<?=
gettext
(
"Enter value for Reflection timeout in seconds."
);
?>
</strong>
<br
/><br
/>
<?=
gettext
(
"Note: Only applies to Reflection on port forwards in NAT + proxy mode."
);
?>
</div>
</td>
</tr>
<tr>
<tr>
<td><a
id=
"help_for_enablebinatreflection"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Reflection for 1:1"
);
?>
</td>
<td><a
id=
"help_for_enablebinatreflection"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Reflection for 1:1"
);
?>
</td>
<td>
<td>
...
...
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