Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
2b162578
Commit
2b162578
authored
6 years ago
by
Ruben Barkow
Committed by
Andreas Ziegler
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gluon-web-mesh-vpn-fastd: clarify config of default crypto method (#1502)
parent
f6dee438
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/features/vpn.rst
+2
-2
2 additions, 2 deletions
docs/features/vpn.rst
package/gluon-web-mesh-vpn-fastd/luasrc/lib/gluon/config-mode/model/admin/mesh_vpn_fastd.lua
+3
-0
3 additions, 0 deletions
...asrc/lib/gluon/config-mode/model/admin/mesh_vpn_fastd.lua
with
5 additions
and
2 deletions
docs/features/vpn.rst
+
2
−
2
View file @
2b162578
...
...
@@ -32,8 +32,9 @@ increase throughput, although in practice the gain is minimal.
**Site configuration:**
1)
Install ``gluon-
web-mesh-vpn-fastd`` in ``site.mk``
1)
Add the feature ``
web-mesh-vpn-fastd`` in ``site.mk``
2) Set ``mesh_vpn.fastd.configurable = true`` in ``site.conf``
3) Optionally add ``null`` to the ``mesh_vpn.fastd.methods`` table if you want "Performance mode" as default (not recommended)
**Gateway configuration:**
...
...
@@ -54,4 +55,3 @@ socket can be interrogated, after installing for example `socat`.
opkg update
opkg install socat
socat - UNIX-CONNECT:/var/run/fastd.mesh_vpn.socket
This diff is collapsed.
Click to expand it.
package/gluon-web-mesh-vpn-fastd/luasrc/lib/gluon/config-mode/model/admin/mesh_vpn_fastd.lua
+
3
−
0
View file @
2b162578
...
...
@@ -11,6 +11,7 @@ mode.template = "mesh-vpn-fastd"
local
methods
=
uci
:
get
(
'fastd'
,
'mesh_vpn'
,
'method'
)
if
util
.
contains
(
methods
,
'null'
)
then
-- performance mode will only be used as default, if it is present in site.mesh_vpn.fastd.methods
mode
.
default
=
'performance'
else
mode
.
default
=
'security'
...
...
@@ -19,6 +20,8 @@ end
function
mode
:
write
(
data
)
local
site
=
require
'gluon.site'
-- methods will be recreated and filled with the original values from site.mesh_vpn.fastd.methods
-- if performance mode was selected, and the method 'null' was not present in the original table, it will be added
local
methods
=
{}
if
data
==
'performance'
then
table.insert
(
methods
,
'null'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment