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
af7776e6
Commit
af7776e6
authored
Aug 24, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipsec: fix a crash report
parent
65ea61e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
vpn.inc
src/etc/inc/vpn.inc
+3
-1
legacy.inc
src/etc/inc/xmlrpc/legacy.inc
+2
-1
vpn_ipsec_mobile.php
src/www/vpn_ipsec_mobile.php
+4
-3
vpn_ipsec_phase1.php
src/www/vpn_ipsec_phase1.php
+5
-5
No files found.
src/etc/inc/vpn.inc
View file @
af7776e6
...
...
@@ -821,8 +821,10 @@ EOD;
mwexec
(
"/usr/local/sbin/ipsec start"
,
false
);
}
if
(
$natfilterrules
==
true
)
if
(
$natfilterrules
==
true
)
{
filter_configure
();
}
/* start filterdns, if necessary */
if
(
count
(
$filterdns_list
)
>
0
)
{
$interval
=
60
;
...
...
src/etc/inc/xmlrpc/legacy.inc
View file @
af7776e6
...
...
@@ -241,12 +241,13 @@ function merge_config_section_xmlrpc($confData)
function
restore_config_section_xmlrpc
(
$new_config
)
{
global
$config
;
require_once
(
"interfaces.inc"
);
require_once
(
"filter.inc"
);
// TODO: initial cleanup operation performed, but a full rewrite is probably a better plan.
$old_config
=
$config
;
// Some sections should just be copied and not merged or we end
// up unable to sync the deletion of the last item in a section
$sync_full
=
array
(
'ipsec'
,
'aliases'
,
'wol'
,
'load_balancer'
,
'openvpn'
,
'cert'
,
'ca'
,
'crl'
,
'schedules'
,
'filter'
,
'nat'
,
'dhcpd'
,
'dhcpv6'
);
...
...
src/www/vpn_ipsec_mobile.php
View file @
af7776e6
...
...
@@ -29,19 +29,20 @@
require_once
(
"interfaces.inc"
);
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"vpn.inc"
);
require_once
(
"services.inc"
);
require_once
(
"pfsense-utils.inc"
);
if
(
!
is
_array
(
$config
[
'ipsec'
]))
{
if
(
!
is
set
(
$config
[
'ipsec'
]))
{
$config
[
'ipsec'
]
=
array
();
}
if
(
!
is
_array
(
$config
[
'ipsec'
][
'phase1'
]))
{
if
(
!
is
set
(
$config
[
'ipsec'
][
'phase1'
]))
{
$config
[
'ipsec'
][
'phase1'
]
=
array
();
}
if
(
!
is
_array
(
$config
[
'ipsec'
][
'client'
]))
{
if
(
!
is
set
(
$config
[
'ipsec'
][
'client'
]))
{
$config
[
'ipsec'
][
'client'
]
=
array
();
}
...
...
src/www/vpn_ipsec_phase1.php
View file @
af7776e6
...
...
@@ -30,11 +30,11 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"vpn.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"services.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
/*
* ikeid management functions
*/
...
...
@@ -59,15 +59,15 @@ function ipsec_ikeid_next() {
}
if
(
!
is
_array
(
$config
[
'ipsec'
]))
{
$config
[
'ipsec'
]
=
array
();
if
(
!
is
set
(
$config
[
'ipsec'
]))
{
$config
[
'ipsec'
]
=
array
();
}
if
(
!
is
_array
(
$config
[
'ipsec'
][
'phase1'
]))
{
if
(
!
is
set
(
$config
[
'ipsec'
][
'phase1'
]))
{
$config
[
'ipsec'
][
'phase1'
]
=
array
();
}
if
(
!
is
_array
(
$config
[
'ipsec'
][
'phase2'
]))
{
if
(
!
is
set
(
$config
[
'ipsec'
][
'phase2'
]))
{
$config
[
'ipsec'
][
'phase2'
]
=
array
();
}
...
...
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