Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mirrors
openwrt
luci
提交
73853abf
L
luci
项目概览
mirrors
/
openwrt
/
luci
大约 1 年 前同步成功
通知
43
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
luci
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
73853abf
编写于
6月 03, 2011
作者:
M
Manuel Munz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
applicatiopns/openvpn: Add descriptions for openvpn options, thanks Joe
上级
db041266
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
32 addition
and
32 deletion
+32
-32
applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
+32
-32
未找到文件。
applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
浏览文件 @
73853abf
...
...
@@ -7,7 +7,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]
--
...
...
@@ -17,36 +17,36 @@ require("luci.model.uci")
local
basicParams
=
{
--
-- Widget, Name, Default(s), Description
--
-- Widget Name Optn. Default(s)
--
{
ListValue
,
"verb"
,
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
}
},
{
Value
,
"nice"
,
0
},
{
Value
,
"port"
,
1194
},
{
ListValue
,
"dev_type"
,
{
"tun"
,
"tap"
}
},
{
Flag
,
"tun_ipv6"
,
0
},
{
Value
,
"ifconfig"
,
"10.200.200.3 10.200.200.1"
},
{
Value
,
"server"
,
"10.200.200.0 255.255.255.0"
},
{
Value
,
"server_bridge"
,
"192.168.1.1 255.255.255.0 192.168.1.128 192.168.1.254"
},
{
Flag
,
"nobind"
,
0
},
{
Flag
,
"comp_lzo"
,
0
},
{
Value
,
"keepalive"
,
"10 60"
},
{
ListValue
,
"proto"
,
{
"udp"
,
"tcp"
}
},
{
Flag
,
"client"
,
0
},
{
Flag
,
"client_to_client"
,
0
},
{
DynamicList
,
"remote"
,
"vpnserver.example.org"
},
{
FileUpload
,
"secret"
,
"/etc/openvpn/secret.key 1"
},
{
FileUpload
,
"pkcs12"
,
"/etc/easy-rsa/keys/some-client.pk12"
},
{
FileUpload
,
"ca"
,
"/etc/easy-rsa/keys/ca.crt"
},
{
FileUpload
,
"dh"
,
"/etc/easy-rsa/keys/dh1024.pem"
},
{
FileUpload
,
"cert"
,
"/etc/easy-rsa/keys/some-client.crt"
},
{
FileUpload
,
"key"
,
"/etc/easy-rsa/keys/some-client.key"
},
{
ListValue
,
"verb"
,
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
},
translate
(
"Set output verbosity"
)
},
{
Value
,
"nice"
,
0
,
translate
(
"Change process priority"
)
},
{
Value
,
"port"
,
1194
,
translate
(
"TCP/UDP port # for both local and remote"
)
},
{
ListValue
,
"dev_type"
,{
"tun"
,
"tap"
},
translate
(
"Type of used device"
)
},
{
Flag
,
"tun_ipv6"
,
0
,
translate
(
"Make tun device IPv6 capable"
)
},
{
Value
,
"ifconfig"
,
"10.200.200.3 10.200.200.1"
,
translate
(
""
)
},
{
Value
,
"server"
,
"10.200.200.0 255.255.255.0"
,
translate
(
"Configure server mode"
)
},
{
Value
,
"server_bridge"
,
"192.168.1.1 255.255.255.0 192.168.1.128 192.168.1.254"
,
translate
(
"Configure server bridge"
)
},
{
Flag
,
"nobind"
,
0
,
translate
(
"Do not bind to local address and port"
)
},
{
Flag
,
"comp_lzo"
,
0
,
translate
(
"Use fast LZO compression"
)
},
{
Value
,
"keepalive"
,
"10 60"
,
translate
(
""
)
},
{
ListValue
,
"proto"
,{
"udp"
,
"tcp"
},
translate
(
"Use protocol"
)
},
{
Flag
,
"client"
,
0
,
translate
(
"Configure client mode"
)
},
{
Flag
,
"client_to_client"
,
0
,
translate
(
"Allow client-to-client traffic"
)
},
{
DynamicList
,
"remote"
,
"vpnserver.example.org"
,
translate
(
"Remote host name or ip address"
)
},
{
FileUpload
,
"secret"
,
"/etc/openvpn/secret.key 1"
,
translate
(
"Enable Static Key encryption mode (non-TLS)"
)
},
{
FileUpload
,
"pkcs12"
,
"/etc/easy-rsa/keys/some-client.pk12"
,
translate
(
"PKCS#12 file containing keys"
)
},
{
FileUpload
,
"ca"
,
"/etc/easy-rsa/keys/ca.crt"
,
translate
(
"Certificate authority"
)
},
{
FileUpload
,
"dh"
,
"/etc/easy-rsa/keys/dh1024.pem"
,
translate
(
"Diffie Hellman parameters"
)
},
{
FileUpload
,
"cert"
,
"/etc/easy-rsa/keys/some-client.crt"
,
translate
(
"Local certificate"
)
},
{
FileUpload
,
"key"
,
"/etc/easy-rsa/keys/some-client.key"
,
translate
(
"Local private key"
)
},
}
...
...
@@ -63,8 +63,7 @@ local s = m:section( NamedSection, arg[1], "openvpn" )
for
_
,
option
in
ipairs
(
basicParams
)
do
local
o
=
s
:
option
(
option
[
1
],
option
[
2
],
translate
(
"openvpn_param_%s"
%
option
[
2
]),
translate
(
"openvpn_param_%s_desc"
%
option
[
2
])
option
[
2
],
option
[
4
]
)
o
.
optional
=
true
...
...
@@ -100,3 +99,4 @@ for _, option in ipairs(basicParams) do
end
return
m
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录