Commit graph

25 commits

Author SHA1 Message Date
Tinko Liu
4b31ffa09b luci-proto-openconnect: add option for array ssl vpn
Signed-off-by: Tinko Liu <24890691+TinkoLiu@users.noreply.github.com>
2024-01-08 20:36:14 +08:00
Jo-Philipp Wich
b8ee30589b luci-proto-openconnect: relax key checking
Valid keys may begin/end with `-----BEGIN PRIVATE KEY-----` and
`-----END PRIVATE KEY-----` so make the `RSA` keyword optional.

Fixes: #6319
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-03-29 15:33:37 +02:00
Jo-Philipp Wich
b200e0e90f luci-proto-openconnect: fix server url validation
The OpenConnect configuration form incorrectly assumed that the server
setting must be hostname while it actually may be a full URL.

Fixes: #6184
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-08 08:57:24 +01:00
Jo-Philipp Wich
41e9b8d121 Revert "luci-proto-openconnect: fix server url validation"
This reverts commit f1312cadc6.

The commit contained unrelated changes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-08 08:56:36 +01:00
Jo-Philipp Wich
f1312cadc6 luci-proto-openconnect: fix server url validation
The OpenConnect configuration form incorrectly assumed that the server
setting must be hostname while it actually may be a full URL.

Fixes: #6184
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-07 11:53:31 +01:00
Jo-Philipp Wich
036424df5b treewide: add explicit Lua runtime dependencies where needed
Some packages require Lua libraries but do not ship with a luasrc directory,
add explicit dependencies in these cases.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25 01:03:37 +02:00
David Bentham
1f25483953 luci-proto-openconnect: Add options proxy server and reconnect timeout support
Signed-off-by: David Bentham <db260179@gmail.com>
2022-09-10 19:54:18 +01:00
Jo-Philipp Wich
171ef77e89 treewide: remove rendundant proto handler options
The introduction of network device configuration support also implemented
all common, protocol-independent interface options directly in the
interface config view, so drop the redundant option definitions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-15 11:41:44 +01:00
Mengyang Li
eeada1a077 luci-proto-openconnect: add vpn_procotol support
see https://github.com/openwrt/packages/pull/13763

Signed-off-by: Mengyang Li <mayli.he@gmail.com>
2020-10-30 13:33:57 -07:00
Marco Gulino
ec375f0bd3 luci-proto-openconnect: add usergroup option
Signed-off-by: Marco Gulino <marco@gulinux.net>
2020-04-30 10:48:31 +01:00
Friendly fellow
adf0fb1879 luci-proto-openconnect: fix certificate file paths
This addresses the issue of openconnect.sh from openconnect package expecting
a vpn- suffix for the files, while the frontend didn't.

Signed-off-by: Friendly fellow <DasTestament@users.noreply.github.com>
[reword commit message]
Ref: https://github.com/openwrt/packages/issues/11584
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-08 09:11:34 +02:00
Jo-Philipp Wich
c43fa199bf luci-proto-openconnect: explicitely escape slashes in regex literals
The unespaced slashes confuse xgettext and likely other source
scanners as well.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-22 22:02:24 +01:00
Jo-Philipp Wich
284918bfaf treewide: move templates and libraries not used by the core to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 17:56:58 +01:00
Jo-Philipp Wich
7a010b1178 luci-proto-openconnect: make PEM values optional
Fixes: #3191
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-16 09:31:24 +02:00
Jo-Philipp Wich
06f4feca1d protocols: drop server side cbi implementations of protocol handlers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6a2a53a829 protocols: add client side protocol handler implementations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
932bae9873 protocols: fix various interface patterns
The virtual interface match patterns of various protocols were improperly
quoted, causing them to over- or undermatch.

Follow up of #1435.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 14:20:53 +01:00
Yousong Zhou
dfd082c53b luci-proto-openconnect: remove "interface" field
It's not needed anymore and removed in the openconnect package

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-19 11:26:36 +08:00
Yousong Zhou
cf8146ff67 luci-proto-openconnect: allow setting mtu, password2
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-19 11:21:47 +08:00
Jo-Philipp Wich
10057db9b1 luci-proto-openconnect: fix authgroup translation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-30 20:16:29 +02:00
Daniel Dickinson
c481f3f343 validation: Add option ipv4only option to host and hostport datatypes
Some applications only support ipv4 so add ipv4only option
to host and hostport datatypes so that for thos applications
that when an IP address is specified only and ipv4 ip address
gets accepted.
2015-12-15 20:41:01 -05:00
Nikos Mavrogiannopoulos
515ad0e08e luci-proto-openconnect: Added option for default gateway
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-03-29 08:31:32 +02:00
Nikos Mavrogiannopoulos
e579b80a48 openconnect: ask for the output interface name
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-02-08 18:47:03 +01:00
Jo-Philipp Wich
7a3493b1f7 Globally reduce copyright headers
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 23:38:38 +01:00
Jo-Philipp Wich
1bb4822dca Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
 * Make each LuCI module its own standalone package
 * Deploy a shared luci.mk which is used by each module Makefile

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00