mirror of https://git.openwrt.org/project/luci.git
luci-app-ipsec: rename to luci-app-strongswan-swanctl
Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
This commit is contained in:
parent
6c0f603f02
commit
b783e4c88c
|
@ -1,15 +0,0 @@
|
||||||
# Copyright 2021 Nicholas Smith (nicholas@nbembedded.com)
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
|
||||||
PKG_MAINTAINER:=Nicholas Smith <nicholas@nbembedded.com>
|
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI support for IPSec via Strongswan
|
|
||||||
LUCI_DESCRIPTION:=Allows configuration of Strongswan IPSec settings
|
|
||||||
LUCI_DEPENDS:=+strongswan-ipsec
|
|
||||||
|
|
||||||
include ../../luci.mk
|
|
||||||
|
|
||||||
# call BuildPackage - OpenWrt buildroot signature
|
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
"admin/vpn/strongswan-ipsec": {
|
|
||||||
"title": "Strongswan IPSec",
|
|
||||||
"order": 90,
|
|
||||||
"action": {
|
|
||||||
"type": "view",
|
|
||||||
"path": "strongswan-ipsec"
|
|
||||||
},
|
|
||||||
"depends": {
|
|
||||||
"acl": [
|
|
||||||
"luci-app-strongswan-ipsec"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"luci-app-strongswan-ipsec": {
|
|
||||||
"description": "Grant access to luci-app-strongswan-ipsec",
|
|
||||||
"read": {
|
|
||||||
"uci": [ "ipsec" ]
|
|
||||||
},
|
|
||||||
"write": {
|
|
||||||
"uci": [ "ipsec" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Copyright 2021 Nicholas Smith (nicholas@nbembedded.com)
|
||||||
|
# Copyright (C) 2023 TDT AG <development@tdt.de>
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
PKG_MAINTAINER:=Nicholas Smith <nicholas@nbembedded.com>, Lukas Voegl <lvoegl@tdt.de>
|
||||||
|
|
||||||
|
LUCI_TITLE:=LuCI support for strongSwan via swanctl
|
||||||
|
LUCI_DESCRIPTION:=Configuration for strongSwan based on swanctl
|
||||||
|
LUCI_DEPENDS:=+strongswan-swanctl
|
||||||
|
|
||||||
|
include ../../luci.mk
|
||||||
|
|
||||||
|
# call BuildPackage - OpenWrt buildroot signature
|
|
@ -8,11 +8,11 @@ return view.extend({
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
m = new form.Map('ipsec',
|
m = new form.Map('ipsec',
|
||||||
_('IPsec Configuration'),
|
_('strongSwan Configuration'),
|
||||||
_("Configure IPsec for secure VPN connections."));
|
_("Configure strongSwan for secure VPN connections."));
|
||||||
|
|
||||||
// IPsec General Settings
|
// strongSwan General Settings
|
||||||
s = m.section(form.TypedSection, 'ipsec', _('IPsec General Settings'));
|
s = m.section(form.TypedSection, 'ipsec', _('strongSwan General Settings'));
|
||||||
s.anonymous = true;
|
s.anonymous = true;
|
||||||
|
|
||||||
o = s.option(widgets.ZoneSelect, 'zone', _('Zone'), _('Firewall zone that has to match the defined firewall zone'));
|
o = s.option(widgets.ZoneSelect, 'zone', _('Zone'), _('Firewall zone that has to match the defined firewall zone'));
|
||||||
|
@ -87,7 +87,7 @@ return view.extend({
|
||||||
o = s.option(form.Value, 'authentication_method', _('Authentication Method'), _('IKE authentication (phase 1)'));
|
o = s.option(form.Value, 'authentication_method', _('Authentication Method'), _('IKE authentication (phase 1)'));
|
||||||
o.datatype = 'string';
|
o.datatype = 'string';
|
||||||
|
|
||||||
s = m.section(form.TypedSection, 'ipsec', _('IPsec General Settings'));
|
s = m.section(form.TypedSection, 'ipsec', _('strongSwan General Settings'));
|
||||||
s.anonymous = true;
|
s.anonymous = true;
|
||||||
|
|
||||||
o = s.option(form.ListValue, 'encryption_algorithm', _('Encryption Algorithm'), _('Encryption method (aes128, aes192, aes256, 3des)'));
|
o = s.option(form.ListValue, 'encryption_algorithm', _('Encryption Algorithm'), _('Encryption method (aes128, aes192, aes256, 3des)'));
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"admin/vpn/strongswan-swanctl": {
|
||||||
|
"title": "strongSwan IPsec",
|
||||||
|
"order": 90,
|
||||||
|
"action": {
|
||||||
|
"type": "view",
|
||||||
|
"path": "strongswan-swanctl/swanctl"
|
||||||
|
},
|
||||||
|
"depends": {
|
||||||
|
"acl": [
|
||||||
|
"luci-app-strongswan-swanctl"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"luci-app-strongswan-swanctl": {
|
||||||
|
"description": "Grant access to luci-app-strongswan-swanctl",
|
||||||
|
"read": {
|
||||||
|
"uci": [ "ipsec" ]
|
||||||
|
},
|
||||||
|
"write": {
|
||||||
|
"uci": [ "ipsec" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue