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
8cabf4f0
Commit
8cabf4f0
authored
Nov 17, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipsec: move deprecated disablevpnrules to its only user
(cherry picked from commit
83e21691
)
parent
dc0edff2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
17 deletions
+13
-17
system_advanced_firewall.php
src/www/system_advanced_firewall.php
+0
-17
vpn_ipsec_settings.php
src/www/vpn_ipsec_settings.php
+13
-0
No files found.
src/www/system_advanced_firewall.php
View file @
8cabf4f0
...
@@ -66,7 +66,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -66,7 +66,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
[
'bypassstaticroutes'
]
=
isset
(
$config
[
'filter'
][
'bypassstaticroutes'
]);
$pconfig
[
'bypassstaticroutes'
]
=
isset
(
$config
[
'filter'
][
'bypassstaticroutes'
]);
$pconfig
[
'disablevpnrules'
]
=
isset
(
$config
[
'system'
][
'disablevpnrules'
]);
}
elseif
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'POST'
)
{
}
elseif
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'POST'
)
{
$pconfig
=
$_POST
;
$pconfig
=
$_POST
;
$old_aliasesresolveinterval
=
$config
[
'system'
][
'aliasesresolveinterval'
];
$old_aliasesresolveinterval
=
$config
[
'system'
][
'aliasesresolveinterval'
];
...
@@ -117,12 +116,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -117,12 +116,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
unset
(
$config
[
'system'
][
'disablefilter'
]);
unset
(
$config
[
'system'
][
'disablefilter'
]);
}
}
if
(
!
empty
(
$pconfig
[
'disablevpnrules'
]))
{
$config
[
'system'
][
'disablevpnrules'
]
=
true
;
}
elseif
(
isset
(
$config
[
'system'
][
'disablevpnrules'
]))
{
unset
(
$config
[
'system'
][
'disablevpnrules'
]);
}
if
(
!
empty
(
$pconfig
[
'adaptiveend'
]))
{
if
(
!
empty
(
$pconfig
[
'adaptiveend'
]))
{
$config
[
'system'
][
'adaptiveend'
]
=
$pconfig
[
'adaptiveend'
];
$config
[
'system'
][
'adaptiveend'
]
=
$pconfig
[
'adaptiveend'
];
}
elseif
(
isset
(
$config
[
'system'
][
'adaptiveend'
]))
{
}
elseif
(
isset
(
$config
[
'system'
][
'adaptiveend'
]))
{
...
@@ -519,16 +512,6 @@ include("head.inc");
...
@@ -519,16 +512,6 @@ include("head.inc");
</div>
</div>
</td>
</td>
</tr>
</tr>
<tr>
<td><a
id=
"help_for_disablevpnrules"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
'Disable Auto-added VPN rules'
)
?>
</td>
<td>
<input
name=
"disablevpnrules"
type=
"checkbox"
value=
"yes"
<?=
!
empty
(
$pconfig
[
'disablevpnrules'
])
?
"checked=
\"
checked
\"
"
:
""
;
?>
/>
<strong>
<?=
gettext
(
"Disable all auto-added VPN rules."
);
?>
</strong>
<div
class=
"hidden"
for=
"help_for_disablevpnrules"
>
<?=
gettext
(
"Note: This disables automatically added rules for IPsec, PPTP."
);
?>
</div>
</td>
</tr>
<tr>
<tr>
<td><a
id=
"help_for_disablereplyto"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
'Disable reply-to'
)
?>
</td>
<td><a
id=
"help_for_disablereplyto"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
'Disable reply-to'
)
?>
</td>
<td>
<td>
...
...
src/www/vpn_ipsec_settings.php
View file @
8cabf4f0
...
@@ -41,6 +41,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -41,6 +41,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// fetch form data
// fetch form data
$pconfig
=
array
();
$pconfig
=
array
();
$pconfig
[
'noinstalllanspd'
]
=
isset
(
$config
[
'system'
][
'noinstalllanspd'
]);
$pconfig
[
'noinstalllanspd'
]
=
isset
(
$config
[
'system'
][
'noinstalllanspd'
]);
$pconfig
[
'disablevpnrules'
]
=
isset
(
$config
[
'system'
][
'disablevpnrules'
]);
$pconfig
[
'preferoldsa_enable'
]
=
isset
(
$config
[
'ipsec'
][
'preferoldsa'
]);
$pconfig
[
'preferoldsa_enable'
]
=
isset
(
$config
[
'ipsec'
][
'preferoldsa'
]);
foreach
(
$ipsec_loglevels
as
$lkey
=>
$ldescr
)
{
foreach
(
$ipsec_loglevels
as
$lkey
=>
$ldescr
)
{
if
(
!
empty
(
$config
[
'ipsec'
][
"ipsec_
{
$lkey
}
"
]))
{
if
(
!
empty
(
$config
[
'ipsec'
][
"ipsec_
{
$lkey
}
"
]))
{
...
@@ -57,6 +58,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -57,6 +58,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
elseif
(
isset
(
$config
[
'system'
][
'noinstalllanspd'
]))
{
}
elseif
(
isset
(
$config
[
'system'
][
'noinstalllanspd'
]))
{
unset
(
$config
[
'system'
][
'noinstalllanspd'
]);
unset
(
$config
[
'system'
][
'noinstalllanspd'
]);
}
}
if
(
!
empty
(
$pconfig
[
'disablevpnrules'
]))
{
$config
[
'system'
][
'disablevpnrules'
]
=
true
;
}
elseif
(
isset
(
$config
[
'system'
][
'disablevpnrules'
]))
{
unset
(
$config
[
'system'
][
'disablevpnrules'
]);
}
if
(
isset
(
$pconfig
[
'preferoldsa_enable'
])
&&
$pconfig
[
'preferoldsa_enable'
]
==
"yes"
)
{
if
(
isset
(
$pconfig
[
'preferoldsa_enable'
])
&&
$pconfig
[
'preferoldsa_enable'
]
==
"yes"
)
{
$config
[
'ipsec'
][
'preferoldsa'
]
=
true
;
$config
[
'ipsec'
][
'preferoldsa'
]
=
true
;
}
elseif
(
isset
(
$config
[
'ipsec'
][
'preferoldsa'
]))
{
}
elseif
(
isset
(
$config
[
'ipsec'
][
'preferoldsa'
]))
{
...
@@ -123,6 +129,13 @@ if (isset($input_errors) && count($input_errors) > 0) {
...
@@ -123,6 +129,13 @@ if (isset($input_errors) && count($input_errors) > 0) {
</div>
</div>
</td>
</td>
</tr>
</tr>
<tr>
<td><i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
'Disable Auto-added VPN rules'
)
?>
</td>
<td>
<input
name=
"disablevpnrules"
type=
"checkbox"
value=
"yes"
<?=
!
empty
(
$pconfig
[
'disablevpnrules'
])
?
"checked=
\"
checked
\"
"
:
""
;
?>
/>
<strong>
<?=
gettext
(
"Disable all auto-added VPN rules."
);
?>
</strong>
</td>
</tr>
<tr>
<tr>
<td><a
id=
"help_for_preferoldsa_enable"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Security Associations"
);
?>
</td>
<td><a
id=
"help_for_preferoldsa_enable"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Security Associations"
);
?>
</td>
<td
width=
"78%"
class=
"vtable"
>
<td
width=
"78%"
class=
"vtable"
>
...
...
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