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
48d4f752
Commit
48d4f752
authored
Apr 21, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openvpn: more reneg-sec spots to adjust
parent
1dd50732
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vpn_openvpn_export.php
src/www/vpn_openvpn_export.php
+1
-1
vpn_openvpn_server.php
src/www/vpn_openvpn_server.php
+1
-1
No files found.
src/www/vpn_openvpn_export.php
View file @
48d4f752
...
@@ -629,7 +629,7 @@ function openvpn_client_export_sharedkey_config($srvid, $useaddr, $proxy, $zipco
...
@@ -629,7 +629,7 @@ function openvpn_client_export_sharedkey_config($srvid, $useaddr, $proxy, $zipco
$conf
.=
"auth
{
$digest
}
\n
"
;
$conf
.=
"auth
{
$digest
}
\n
"
;
$conf
.=
"pull
\n
"
;
$conf
.=
"pull
\n
"
;
$conf
.=
"resolv-retry infinite
\n
"
;
$conf
.=
"resolv-retry infinite
\n
"
;
if
(
!
empty
(
$settings
[
'reneg-sec'
])
)
{
if
(
isset
(
$settings
[
'reneg-sec'
])
&&
$settings
[
'reneg-sec'
]
!=
""
)
{
$conf
.=
"reneg-sec
{
$settings
[
'reneg-sec'
]
}
\n
"
;
$conf
.=
"reneg-sec
{
$settings
[
'reneg-sec'
]
}
\n
"
;
}
}
$conf
.=
"remote
{
$server_host
}
{
$server_port
}
\n
"
;
$conf
.=
"remote
{
$server_host
}
{
$server_port
}
\n
"
;
...
...
src/www/vpn_openvpn_server.php
View file @
48d4f752
...
@@ -318,7 +318,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -318,7 +318,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors
[]
=
gettext
(
"The Server Bridge DHCP range is invalid (start higher than end)."
);
$input_errors
[]
=
gettext
(
"The Server Bridge DHCP range is invalid (start higher than end)."
);
}
}
}
}
if
(
!
empty
(
$pconfig
[
'reneg-sec'
])
&&
(
string
)((
int
)
$pconfig
[
'reneg-sec'
])
!=
$pconfig
[
'reneg-sec'
])
{
if
(
isset
(
$pconfig
[
'reneg-sec'
])
&&
(
string
)((
int
)
$pconfig
[
'reneg-sec'
])
!=
$pconfig
[
'reneg-sec'
])
{
$input_errors
[]
=
gettext
(
"Renegotiate time should contain a valid number of seconds."
);
$input_errors
[]
=
gettext
(
"Renegotiate time should contain a valid number of seconds."
);
}
}
do_input_validation
(
$pconfig
,
$reqdfields
,
$reqdfieldsn
,
$input_errors
);
do_input_validation
(
$pconfig
,
$reqdfields
,
$reqdfieldsn
,
$input_errors
);
...
...
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