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
5db0c310
Commit
5db0c310
authored
Dec 05, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Dec 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(openvpn, export) add reneg-sec, closes
https://github.com/opnsense/core/issues/1147
(cherry picked from commit
902b9431
)
parent
6681e855
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vpn_openvpn_export.php
src/www/vpn_openvpn_export.php
+6
-0
No files found.
src/www/vpn_openvpn_export.php
View file @
5db0c310
...
...
@@ -186,6 +186,9 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $verifys
$conf
.=
"auth
{
$digest
}{
$nl
}
"
;
$conf
.=
"tls-client
{
$nl
}
"
;
$conf
.=
"client
{
$nl
}
"
;
if
(
!
empty
(
$settings
[
'reneg-sec'
]))
{
$conf
.=
"reneg-sec
{
$settings
[
'reneg-sec'
]
}{
$nl
}
"
;
}
if
((
$expformat
!=
"inlinedroid"
)
&&
(
$expformat
!=
"inlineios"
))
{
$conf
.=
"resolv-retry infinite
{
$nl
}
"
;
}
...
...
@@ -631,6 +634,9 @@ function openvpn_client_export_sharedkey_config($srvid, $useaddr, $proxy, $zipco
$conf
.=
"auth
{
$digest
}
\n
"
;
$conf
.=
"pull
\n
"
;
$conf
.=
"resolv-retry infinite
\n
"
;
if
(
!
empty
(
$settings
[
'reneg-sec'
]))
{
$conf
.=
"reneg-sec
{
$settings
[
'reneg-sec'
]
}
\n
"
;
}
$conf
.=
"remote
{
$server_host
}
{
$server_port
}
\n
"
;
if
(
!
empty
(
$settings
[
'local_network'
]))
{
$conf
.=
openvpn_gen_routes
(
$settings
[
'local_network'
],
'ipv4'
);
...
...
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