375 Commits

Author SHA1 Message Date
Andy Chiang
fb3b96ec65 luci-proto-ppp: add ac_mac and IPv6-PD options
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
add ac_mac and IPv6-PD options

Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
2025-11-11 19:50:30 +01:00
Paul Donald
f52d047e2f luci-proto-wireguard: Display times which account for the timezone also
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-28 20:50:51 +01:00
Paul Donald
80a0abb54f luci-proto-wireguard: Hide the QR code parent dialogue button row via styling
Previously, the render code attempted to add the class "hidden" to the button
row, the button row which can have a persistent visibility style applied via CSS
so the "hidden" class attribute was overridden. Set the style.display of the row
instead which now hides the button row.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-28 17:36:53 +01:00
Martin Schiller
87375a5cf0 protocols: l2tp: add option hostname
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
This adds the possibility to set our own L2TP hostname in the advanced
tab. It's needed if the peer only allows certain hostnames to connect.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2025-10-27 17:54:16 +01:00
Alexander Ivanov
f48999cb7a luci-proto-yggdrasil: fix interface selection
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
Package `yggdrasil` doesn't support network names and aliases.

Signed-off-by: Alexander Ivanov <saiv46.dev@gmail.com>
2025-09-23 20:08:10 +02:00
Arayuki Mago
183ab68aef luci-proto-ipv6: map: allow /128 IPv6 prefix length
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
IPv6 prefix length is normally valid in the range 0–64.
Additionally, /128 is a special case that needs to be supported.

Signed-off-by: Arayuki Mago <ms@missing233.com>
2025-09-04 14:29:25 +02:00
Paul Donald
58575727e5 luci-proto-openconnect: bug fixes for cert read and write methods
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
follow-up to: aa955d6465

Minor refactor of ucode, and some GUI fixes to ensure certificates are
written properly.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-07-25 20:55:49 +02:00
Paul Donald
1352d75f1a luci-proto-vxlan: peers -> peer spelling fix
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
follow-up to cbd37919ae

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-07-16 16:08:57 +02:00
Florian Eckert
2ea7e7fb41 Merge pull request #7785 from TDT-AG/pr/20250527-luci-proto-modemmanager
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
luci-proto-modemmanager: fix username and password show if allowedauth is configured
2025-06-23 10:58:40 +02:00
Florian Eckert
cdd36410fd luci-proto-modemmanager: fix when to show username and password
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2025-06-23 10:27:17 +02:00
Jan Pazdziora
2604b5532f luci-proto-wireguard: Add the option for setting ip6prefix.
Signed-off-by: Jan Pazdziora <jan.pazdziora@code.adelton.com>
2025-06-16 13:24:57 +02:00
Paul Donald
fa6ca8a618 treewide: vectorise iconography
follow-up to ae5d91da90

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-14 00:13:52 +02:00
Paul Donald
85fde70cd2 treewide: vectorise iconography
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
GitHub pages / deploy (push) Has been cancelled
follow-up to ae5d91da90

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-13 15:55:41 +02:00
Paul Donald
ae5d91da90 treewide: vectorise iconography
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
GitHub pages / deploy (push) Has been cancelled
Clear, crisp, resolution independent vector graphics replace the trusty
microscopic PNG. Some minor CSS changes were needed to constrain images
in some locations to make sure they don't consume too much space.

Iconography taken from Mate desktop theme with minor adjustments:

https://github.com/mate-desktop/mate-icon-theme/

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-12 18:55:53 +02:00
Paul Donald
610ccdbcfe luci-proto-openfortivpn: make PEM key+CA optional
Fixes #7812

Some authentications schemes using username+password might already be
sufficient.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-10 15:02:25 +02:00
this-username-has-been-taken
8bff54dc47 luci-proto-wireguard: fixed incorrect peer name detection
Added the legacy peer name detection algorithm. If the new algorithm
fails to find a peer's name (e.g. when the IP address has been changed)
then the legacy value will be used.

Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
2025-04-13 16:17:02 +02:00
Paul Donald
4207c2c5d5 luci-proto-wireguard: add extra checks for hostname when building qr
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-03-26 22:41:23 +01:00
Ivan Chashkin
ca9761370a luci-proto-yggdrasil: update yggdrasil.js for 0.5.7+ version
rename latency_ms and add new protocols to validate functions
https://yggdrasil-network.github.io/configurationref.html

Signed-off-by: Ivan Chashkin <mail@cupivan.ru>
2025-02-25 14:01:24 -06:00
Sergey Ponomarev
cbd37919ae luci-proto-vxlan: fix option name: vxlan_peers to vxlan_peer
Some checks are pending
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Waiting to run
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2025-02-22 23:19:10 -06:00
Florian Eckert
9c3be817ad luci-proto-modemmanager: change string for 'Own Numbers' to 'Mobile Number'
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2025-02-13 14:09:05 +01:00
Paul Donald
920795afc7 luci-base, luci-proto-yggdrasil: grammar fix
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-01-13 17:57:45 +01:00
Paul Donald
fec079db36 luci-base, luci-proto-wireguard: grammar fix
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-01-13 17:57:42 +01:00
Paul Donald
e98eab06a2 luci-base, luci-proto-vxlan: grammar fix
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-01-13 17:57:42 +01:00
Erik Karlsson
a88d4af4e9 luci-proto-3g/ppp/pppossh: fix setting of keepalive
Some checks are pending
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Waiting to run
Fix regressions from f3d26a2a56:

1) It is now possible again to leave the keepalive option empty.

2) It is possible now to set an interval different from 1 without the
   need to explicitly set the failure threshold.

Signed-off-by: Erik Karlsson <erik.karlsson@iopsys.eu>
2025-01-09 20:51:27 +01:00
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
Some checks are pending
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Waiting to run
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
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
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
Some checks are pending
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Waiting to run
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
Some checks failed
LuCI repo CodeQL Analysis / Analyze JavaScript and JSON (javascript-typescript) (push) Has been cancelled
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