mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Create a dsvpn interface and put all VPN in VPN menu
This commit is contained in:
parent
29b42e36a1
commit
87327f9489
8 changed files with 185 additions and 5 deletions
15
luci-app-dsvpn/Makefile
Normal file
15
luci-app-dsvpn/Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
#
|
||||
# Copyright (C) 2018-2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter
|
||||
#
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI Support for DSVPN
|
||||
LUCI_DEPENDS:=+dsvpn
|
||||
|
||||
PKG_LICENSE:=GPLv3
|
||||
|
||||
include ../luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
7
luci-app-dsvpn/luasrc/controller/dsvpn.lua
Normal file
7
luci-app-dsvpn/luasrc/controller/dsvpn.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
module("luci.controller.dsvpn", package.seeall)
|
||||
|
||||
function index()
|
||||
--entry({"admin", "openmptcprouter", "mlvpn"}, cbi("mlvpn"), _("MLVPN"))
|
||||
--entry({"admin", "services", "dsvpn"}, cbi("dsvpn"), _("DSVPN"))
|
||||
entry({"admin", "vpn", "dsvpn"}, cbi("dsvpn"), _("DSVPN"))
|
||||
end
|
44
luci-app-dsvpn/luasrc/model/cbi/dsvpn.lua
Normal file
44
luci-app-dsvpn/luasrc/model/cbi/dsvpn.lua
Normal file
|
@ -0,0 +1,44 @@
|
|||
local net = require "luci.model.network".init()
|
||||
local sys = require "luci.sys"
|
||||
local ifaces = sys.net:devices()
|
||||
local m, s, o
|
||||
|
||||
m = Map("dsvpn", translate("DSVPN"))
|
||||
|
||||
s = m:section(TypedSection, "dsvpn", translate("Settings"))
|
||||
s.anonymous = true
|
||||
s.addremove = false
|
||||
|
||||
o = s:option(Flag, "enable", translate("Enable"))
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "host", translate("Remote host"))
|
||||
o.placeholder = "128.128.128.128"
|
||||
o.default = "128.128.128.128"
|
||||
o.datatype = "host"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "port", translate("Remote/Bind port"))
|
||||
o.placeholder = "65011"
|
||||
o.default = "65011"
|
||||
o.datatype = "port"
|
||||
|
||||
o = s:option(Value, "key", translate("Key"))
|
||||
o.password = true
|
||||
o.rmempty = false
|
||||
|
||||
|
||||
o = s:option(Value, "localip", translate("Local IP"),translate("Tunnel local IP"))
|
||||
o.default = "10.255.251.2"
|
||||
o.datatype = "host"
|
||||
|
||||
o = s:option(Value, "remoteip", translate("Remote IP"),translate("Tunnel remote IP"))
|
||||
o.default = "10.255.251.1"
|
||||
o.datatype = "host"
|
||||
|
||||
o = s:option(Value, "dev", translate("Interface name"))
|
||||
o.placeholder = "tun0"
|
||||
o.default = "tun0"
|
||||
o.rmempty = false
|
||||
|
||||
return m
|
61
luci-app-dsvpn/po/fr/mlvpn.po
Normal file
61
luci-app-dsvpn/po/fr/mlvpn.po
Normal file
|
@ -0,0 +1,61 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.0.6\n"
|
||||
"Last-Translator: Ycarus <ycarus@zugaina.org>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"Language: fr\n"
|
||||
|
||||
msgid "Add"
|
||||
msgstr "Ajouter"
|
||||
|
||||
msgid "Enable"
|
||||
msgstr "Activé"
|
||||
|
||||
msgid "First remote port"
|
||||
msgstr "Premier port distant"
|
||||
|
||||
msgid "Interface name"
|
||||
msgstr "Nom de l'interface"
|
||||
|
||||
msgid "Interface will increase port used beginning with this"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interfaces"
|
||||
msgstr "Interfaces"
|
||||
|
||||
msgid "Invalid"
|
||||
msgstr "Invalide"
|
||||
|
||||
msgid "Loss tolerance"
|
||||
msgstr ""
|
||||
|
||||
msgid "MLVPN"
|
||||
msgstr ""
|
||||
|
||||
msgid "Mode"
|
||||
msgstr ""
|
||||
|
||||
msgid "Password"
|
||||
msgstr "Mot de passe"
|
||||
|
||||
msgid "Remote host"
|
||||
msgstr "Nom de l'hôte distant ou adresse IP"
|
||||
|
||||
msgid "Remote/Bind port"
|
||||
msgstr "Port de connexion distant"
|
||||
|
||||
msgid "Reorder buffer size"
|
||||
msgstr ""
|
||||
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
msgid "Timeout (s)"
|
||||
msgstr "Délais d'attente (s)"
|
50
luci-app-dsvpn/po/templates/mlvpn.pot
Normal file
50
luci-app-dsvpn/po/templates/mlvpn.pot
Normal file
|
@ -0,0 +1,50 @@
|
|||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
msgid "Enable"
|
||||
msgstr ""
|
||||
|
||||
msgid "First remote port"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interface name"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interface will increase port used beginning with this"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interfaces"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invalid"
|
||||
msgstr ""
|
||||
|
||||
msgid "Loss tolerance"
|
||||
msgstr ""
|
||||
|
||||
msgid "MLVPN"
|
||||
msgstr ""
|
||||
|
||||
msgid "Mode"
|
||||
msgstr ""
|
||||
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Remote host"
|
||||
msgstr ""
|
||||
|
||||
msgid "Remote/Bind port"
|
||||
msgstr ""
|
||||
|
||||
msgid "Reorder buffer size"
|
||||
msgstr ""
|
||||
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
msgid "Timeout (s)"
|
||||
msgstr ""
|
|
@ -1,4 +1,4 @@
|
|||
-- Copyright 2018 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
-- Copyright 2018 - 2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
-- Licensed to the public under the Apache License 2.0.
|
||||
|
||||
module("luci.controller.glorytun", package.seeall)
|
||||
|
@ -7,6 +7,8 @@ function index()
|
|||
if not nixio.fs.access("/etc/config/glorytun") then
|
||||
return
|
||||
end
|
||||
entry({"admin", "services", "glorytun"}, cbi("glorytun"), _("Glorytun") )
|
||||
entry({"admin", "services", "glorytun", "settings"}, cbi("glorytun-settings"), nil ).leaf = true
|
||||
--entry({"admin", "services", "glorytun"}, cbi("glorytun"), _("Glorytun") )
|
||||
--entry({"admin", "services", "glorytun", "settings"}, cbi("glorytun-settings"), nil ).leaf = true
|
||||
entry({"admin", "vpn", "glorytun"}, cbi("glorytun"), _("Glorytun") )
|
||||
entry({"admin", "vpn", "glorytun", "settings"}, cbi("glorytun-settings"), nil ).leaf = true
|
||||
end
|
||||
|
|
|
@ -2,5 +2,6 @@ module("luci.controller.mlvpn", package.seeall)
|
|||
|
||||
function index()
|
||||
--entry({"admin", "openmptcprouter", "mlvpn"}, cbi("mlvpn"), _("MLVPN"))
|
||||
entry({"admin", "services", "mlvpn"}, cbi("mlvpn"), _("MLVPN"))
|
||||
--entry({"admin", "services", "mlvpn"}, cbi("mlvpn"), _("MLVPN"))
|
||||
entry({"admin", "dsvpn", "mlvpn"}, cbi("mlvpn"), _("MLVPN"))
|
||||
end
|
||||
|
|
|
@ -17,7 +17,7 @@ MY_DEPENDS := \
|
|||
mptcp \
|
||||
unbound-daemon unbound-control \
|
||||
netifd \
|
||||
dsvpn \
|
||||
luci-app-dsvpn \
|
||||
mc \
|
||||
f2fs-tools \
|
||||
openmptcprouter \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue