Commit Graph

351 Commits

Author SHA1 Message Date
Paul Donald
bd36a83c5b
luci-proto-bonding: remove (in favour of netifd bonding in luci)
Added in fb4cf432d2

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-12-19 18:44:57 +00:00
Paul Donald
b4e1052331
luci-proto-wireguard: disambiguate fwmark description
fwmark is used internally during firewall processing, and no mark
remains on egress. Yes, the fwmark is to identify egress encrypted
packets, but no egress packet itself contains this value, and
this metadata disappears once the packet leaves the firewall.

The current wording is ambiguous, since "for" does a lot of lifting.

"during" helps limit the scope of this definition.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-12-18 15:03:54 +00:00
Paul Donald
8d13ea410d
luci-base, luci-proto-*: rename getOpkgPackage -> getPackageName
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-12-15 20:13:56 +01:00
Arayuki Mago
d992d6f105 luci-proto-ipv6: add missing extendprefix option for DHCPv6 client
Allow the DHCPv6 client to accept /64 prefix via SLAAC and extend it on downstream interface (RFC 7278)
useful for ISPs that only distribute /64 IPv6 prefixes through SLAAC.

Signed-off-by: Arayuki Mago <ms@missing233.com>
2024-12-15 18:45:28 +01:00
Tom Haley
461d632d5c luci-proto-wireguard: fixed incorrect peer detection for ipv6 and default port
Fixed incorrect peer detection if IP v6 is used and no port for peer is defined.

Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
2024-12-05 18:09:39 +01:00
Tom Haley
27ecfdaafe luci-proto-wireguard: fixed incorrect peer detection if port is not set
Fixed incorrect peer detection if port is not set (default port is used)

Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
2024-12-05 18:09:39 +01:00
Tom Haley
101ea169c6 luci-proto-wireguard: fixed a vulnerability in the checkPeerHost method
shellquote method is introduced so an injected code cannot be executed by the popen command.

Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
2024-12-05 18:09:39 +01:00
Tom Haley
5c97a89684 luci-proto-wireguard: Fix incorrect peer detection for IP v6
This commit fixes incorrect peer detection when using IP v6 by deleting all the square the square brackets from the wgHost variable.

Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
2024-12-02 18:22:15 +01:00
Paul Donald
98c04137b4
luci-proto-ipv6: set recommended default for norelease
See https://github.com/openwrt/luci/issues/7410

Basically: RFC9096 updates the language in order to avoid DHCPv6 RELEASE
upon reboot to avoid re-addressing. (now: RELEASE == SHOULD NOT)

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-11-30 15:49:08 +01:00
Paul Donald
eadd59fc34
luci-proto-ipv6: augment reqprefix description to include prefix also
See https://github.com/openwrt/luci/issues/7397

to match changes in odhcp6c where one can now also specify the prefix

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-11-30 15:39:22 +01:00
Preport
f3d26a2a56
luci-proto-3g/ppp/pppossh: fix being unable to set keepalive to 0
Since on openwrt keepalive option defaults to "5 1" when it's not
defined:
6720c4ccba/package/network/services/ppp/files/ppp.sh (L128)

Users must be able to set it to 0 to ignore connection failures.

Signed-off-by: Erdem Gez <perport@perport.net>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-11-30 05:16:59 +01:00
Paul Donald
aa955d6465 luci-proto-openconnect: convert helper to ucode
set also dep to luci-base

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-11-22 20:26:23 +01:00
Paul Donald
0060e43174 luci-proto-openfortivpn: convert helper to ucode
set also dep to luci-base

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-11-22 20:26:23 +01:00
Paul Donald
42e2e404cf luci-proto-vxlan: fix format in i18n strings
follow-up to 9ebffc1ecd

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-11-17 23:08:28 +01:00
Paul Donald
1de73e16f5 luci-proto-vxlan: fix tos write and load handlers
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-11-07 01:45:41 +01:00
Paul Donald
ba530891d5 luci-proto-vxlan: introduce peers tab and additional vxlan settings
Added ip-bridge dep for bridge command to manage FDB entries.

Reference:
https://events.static.linuxfound.org/sites/events/files/slides/2013-linuxcon.pdf

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-25 22:19:00 +02:00
Paul Donald
f1b302d49b luci-proto-wireguard: make peer entries sortable
Closes #7354

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-25 21:41:33 +02:00
Paul Donald
760ac165fa luci-proto-wireguard: follow-up fix for status overview
follow-up to 7acea81873

Closes #7347

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-24 20:34:43 +02:00
this-username-has-been-taken
7acea81873 luci-proto-wireguard: fixed bug with incorrect peer name detection
Fixed bug with incorrect peer name detection on `Status -> WireGuard`
page when more than one peer with the same public key exist:
1. Peers are now tested not only by public key, but also by
enabled/disabled status, peer host (both IP and FQDN are supported)
and port.
2. Added required `resolveip` dependency.

Closes #7342

Signed-off-by: @this-username-has-been-taken
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-23 22:25:27 +02:00
Damir Samardzic
50b67f8a00
luci-proto-modemmanager: add initial EPS bearer support
ModemManager protocol has supported setting initial EPS bearer since
package commit [1], so lets expose the same support via LuCI as well.

[1] af12147f8c

Signed-off-by: Damir Samardzic <damir.samardzic@sartura.hr>
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2024-10-19 11:22:42 +02:00
Rany Hany
02b58b8f06 luci-proto-3g/ppp/pppossh: fix default keepalive values
Signed-off-by: Rany Hany <rany_hany@riseup.net>
2024-09-06 01:28:02 +02:00
Matt Eaton
01de201dbb luci-proto-xfrm: update description for now-optional tunlink parameter
Signed-off-by: Matt Eaton <git@divinehawk.com>
2024-09-05 01:51:43 +03:00
Florian Eckert
7546249a27 luci-proto-modemmanger: fix auth handling
This has never worked because the option 'auth' is not known to the
modemmanger proto handler. The correct uci name is 'allowedauth' and is
also a uci list option, so that several options can be selected.

This commit fixes this bug.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-07-22 10:24:04 +02:00
Bryan Roessler
071fc1bc92 luci-proto-wireguard: disable peers from the tab
It's clumsy to enable/disable peers from the modal, save some clicks

Signed-off-by: Bryan Roessler <bryanroessler@gmail.com>
2024-07-15 22:49:32 +02:00
Remy D. Farley
39bc55695f luci-proto-yggdrasil: show peer latency
Signed-off-by: Remy D. Farley <one-d-wide@protonmail.com>
2024-06-30 17:25:24 +02:00
Paul Donald
74f366a1e5 luci-proto-wireguard: adapt to use uqr
If for some reason luci-lib-uqr is absent, the GUI shows that the proto
handler needs installing (since it now has a dep which is missing).

Suitable action is to install the lib or remove/install wireguard again.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-06-27 20:19:58 +02:00
Stan Grishin
5a8917b149 luci-proto-nebula: drop maintainership
* update license
* improve package's presence in make menuconfig
* drop maintainership

Signed-off-by: Stan Grishin <stangri@melmac.ca>
2024-06-16 23:34:00 +02:00
Nikos Mavrogiannopoulos
c27c0b2505 luci-proto-openconnect: updated SSL VPN option list and update sha1 hash wording
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-05-28 11:04:40 +02:00
Nikos Mavrogiannopoulos
03d6dec7d2 luci-proto-openconnect: use the uri configuration option
This enables more advanced configuration by allowing complex URIs, including
user groups and hidden directories (camouflage). It further simplifies the configuration
by eliminating the port and usergroup parameters.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-05-28 11:04:40 +02:00
Nikos Mavrogiannopoulos
46a2acac92 luci-proto-openconnect: register as simply openconnect
This is no longer a client implementing CISCO anyconnect. Many other
protocols are present.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-05-28 11:04:40 +02:00
Sergey Ponomarev
fbbfdb4afc treewide: Add missing PKG_MAINTAINER
Daniel F. Dickinson changed email address to <dfdpublic@wildtechgarden.ca>

luci-all-lxl has a maintainer Petar Koretic <petar.koretic@sartura.hr> but there is no corresponding GitHub account.
So Dirk Brenken was added as a second maintainer: he answered on an issue of the app.

When maintainer wasn't set the initial author was used, or most contributor or Jo-Philipp Wich as a default.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2024-05-28 01:55:14 +02:00
Jo-Philipp Wich
216cbb0e5e luci-proto-ipv6: dslite: suggest common AFTR addresses for Japanese market
Include in DS-Lite General Settings common AFTR addresses for Japan market
to make it easier to configure OpenWrt in Japan and help people to save
money on hardware.

Fixes: #7133
Ref: https://forum.openwrt.org/t/x/195654
Suggested-by: Konstantin-Glukhov <24302271+Konstantin-Glukhov@users.noreply.github.com>
[shorten subject, rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2024-05-21 09:24:36 +02:00
Jo-Philipp Wich
b57c6ff29e Revert "luci-proto-ppp: pppoe.so has no MTU option; remove it"
This reverts commit 995d3a1801.

The `mtu` option controls the pppd mru and mtu arguments, it is not
specific to pppoe.so.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2024-05-13 12:34:27 +02:00
Hannu Nyman
1ba94f2ed5 luci-proto-{wireguard,yggdrasil}: remove unnecessary PROVIDES
Remove the unnecessary PROVIDES statements from two protocols.

Wireguard was recently changed erroneously: the old compatibility
reference to luci-app-wireguard was replaced by self-reference.
But as the app and proto were combined already in 2022, the old
compatibility define should be unnecessary by now, so just remove it.

Yggdrasil has had a similar unnecessary setting (package
PROVIDES itself), so remove that at the same time.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2024-04-25 20:08:37 +03:00
Florian Eckert
bd6bf5a292 luci-proto-modemmanager: rename menu entry from mobile service to cellular network
The old term "mobile service" is not common, it is replaced by the new
name "cellular network", which is more familiar.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-25 13:03:58 +02:00
Paul Donald
f5f2323e80 luci-proto-wireguard: fix Makefile 'provides'
once-upon-a-time it was called luci-app-wireguard. Now it's proto.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-04-23 00:21:17 +02:00
Paul Donald
995d3a1801 luci-proto-ppp: pppoe.so has no MTU option; remove it
Retain comment so nobody is tempted to resurrect it.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-04-16 17:48:35 +02:00
Jo-Philipp Wich
2cc986ac4e luci-proto-yggdrasil: fix empty translation string
The empty string is not a legal translation key.

Fixes: f5ccfd3df4 ("luci-proto-yggdrasil: add `yggdrasil-jumper` support")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2024-04-08 15:34:37 +02:00
Florian Eckert
0e71b881ae
Merge pull request #7020 from findlayfeng/luci-proto-bonding
luci-proto-bonding: Modify ipaddr as optional
2024-04-08 10:54:51 +02:00
Remy D. Farley
f5ccfd3df4 luci-proto-yggdrasil: add yggdrasil-jumper support
Signed-off-by: Remy D. Farley <one-d-wide@protonmail.com>
2024-04-03 18:33:05 +02:00
Findlay Feng
f48c8e5986
luci-proto-bonding: Modify ipaddr as optional
Signed-off-by: Findlay Feng <i@fengch.me>
2024-03-29 21:43:33 +08:00
Stan Grishin
82105922eb luci-proto-nebula: prepare migration to APK
Signed-off-by: Stan Grishin <stangri@melmac.ca>
2024-03-23 01:15:28 +00:00
Florian Eckert
9cdb26b830 luci-proto-qmi: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:22:36 +01:00
Florian Eckert
753895963f luci-proto-xfrm: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:22:36 +01:00
Florian Eckert
20197f4911 luci-proto-wireguard: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:22:36 +01:00
Florian Eckert
52dc293e85 luci-proto-vxlan: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:22:36 +01:00
Florian Eckert
ed4c10ba2a luci-proto-vti: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:22:36 +01:00
Florian Eckert
a7e9971e1b luci-proto-unet: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:22:36 +01:00
Florian Eckert
17cb453327 luci-proto-sstp: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:22:36 +01:00
Florian Eckert
9ea2dac98a luci-proto-relay: add missing license information
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-03-19 13:22:36 +01:00