Commit graph

165 commits

Author SHA1 Message Date
Wojciech Jowsa
60ce87a197 luci-proto-wireguard: Add generate key button
Signed-off-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
[minor indentation fix, use bound section_id value, remove empty translation]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-08-21 11:03:53 +02:00
Nicholas Smith
29edc02f1c luci-proto-modemmanager: add modem specific error messages.
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
2020-07-10 20:39:07 +10:00
Robert Koszewski
9a291f9b5e luci-proto-sstp: proto add
Signed-off-by: Robert Koszewski <rkkoszewski@gmail.com>
2020-07-01 17:15:08 +02:00
Jan Bětík
2ced86048c luci-proto-gre: Protocol extension for GRE tunnels
I'm running several GRE tunnels to different locations and
the option to see and to configure GRE tunnels in LuCI was not
crucial but nice to have.

Signed-off-by: Jan Bětík <jan.betik@svine.su>
2020-06-16 17:11:10 +02:00
Wojciech Jowsa
6dd22ec98d luci-proto-vxlan: add destination port option
Signed-off-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
2020-06-01 16:36:23 +02:00
Jo-Philipp Wich
0de42b056b luci-proto-vxlan: fix uci option names
Fixes: d79bbdd5b ("luci-proto-vxlan: add vxlan protol handler")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-27 18:54:38 +02:00
Wojciech Jowsa
d79bbdd5b0 luci-proto-vxlan: add vxlan protol handler
Allow users to add vxlan inteface in luci.

Signed-off-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
2020-05-27 18:46:18 +02:00
Florian Eckert
dae15b8cf4 luci-proto-wireguard: verify last base64 string symbol is an = sign
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-14 09:44:50 +02:00
Florian Eckert
59bc317326 luci-proto-wireguard: add warning that allowed_ips must not be empty
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-13 15:34:27 +02:00
Florian Eckert
318d44fdf5
Merge pull request #3978 from GuLinux/proto_openconnect_usergroup
luci-proto-openconnect: add usergroup option
2020-05-05 08:31:57 +02:00
Helge Mader
33df1c1544 luci-proto-bonding: add protohandler configuration for channel bonding
Signed-off-by: Helge Mader <ma@dev.tdt.de>

* Changed the makefile copyright date
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-05 08:26:23 +02: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
890dcac2de luci-proto-wireguard: remove peer sections when deleting interface
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-03 21:22:46 +01:00
Yuxiang Zhu
9684901dc2 wireguard: add checkbox for nohostroute option
This change allows to configure `nohostroute` option for wireguard to explicitely prevent creation
of host routes to endpoints.

By default without `option nohostroute '1'`, an explicite route to the peer's endpoint will be created in the main routing table with the next hop to the gateway. However, it causes issues with some setup. Enabling this option will inhibit this behavior. See discussions at http://lists.openwrt.org/pipermail/openwrt-devel/2019-March/016329.html.

Signed-off-by: Yuxiang Zhu <vfreex@gmail.com>
2020-02-09 02:12:30 +08:00
Jo-Philipp Wich
58c091ac9b luci-proto-modemmanager: use nmcli to detemrine modem choices
Fixes: #3586
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-08 11:28:14 +01: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
f1c89c103b luci-proto-wireguard: 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
Florian Eckert
a9b680c4e2
Merge pull request #3178 from nickberry17/update-proto-qmi
luci-proto-qmi: add PDP type option
2019-10-23 11:12:05 +02:00
Nicholas Smith
c607284d30 luci-proto-qmi: remove the word 'both' from menu for improved i18n
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
2019-10-23 14:34:22 +10:00
Nicholas Smith
eb0c5c04e8 luci-proto-qmi: add PDP type option
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
2019-10-23 14:31:19 +10: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
Anton Kikin
afc120a6c6 luci-proto-modemmanager: add translation for values
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-10-14 19:03:50 +03:00
Nicholas Smith
6a79c61221 luci-proto-modemmanager: add luci-proto-modemmanager
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
2019-10-11 08:27:02 +10:00
Jo-Philipp Wich
995322c55f luci-proto-wireguard: fix preshared key validation
Ensure that the preshared key option remains optional.

Fixes: #3075
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-17 08:28:45 +02:00
Jo-Philipp Wich
5e7e9b58cf luci-base: restore some lost translations and update german
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 14:03:11 +02:00
Jo-Philipp Wich
9cae3b9e67 protocols: replace luci/getTTYDevices calls with generic file/list ones
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:29:04 +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
1fc8d021ed protocols: fix contains_interface() implementation in several backends
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-06 15:19:50 +02:00
Florian Eckert
f56a6df49c
Merge pull request #2791 from TDT-AG/pr/20190626-luci-proto-3g
luci-proto-3g: rename maxwait to delay option
2019-07-03 08:59:35 +02:00
Florian Eckert
0dec930dd4 luci-proto-qmi: add missing mtu option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-07-01 10:20:13 +02:00
Florian Eckert
ae1652fc11
Merge pull request #2792 from TDT-AG/pr/20190626-luci-proto-qmi
luci-proto-qmi: improvements
2019-06-27 15:20:31 +02:00
aleem-tectonic
d9ff6721ef
add dialnum option
Signed-off-by: geekinaboxx <aleem@tectonic.it>
2019-06-26 15:02:22 +01:00
Florian Eckert
f17227d3f5 luci-proto-qmi: only show password and username if auth is selected
Only show username and password if we use PAP/CHAP, PAP or CHAP
authentication.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-06-26 13:08:23 +02:00
Florian Eckert
204bc5b9ab luci-proto-qmi: add missing delay option
The proto handler qmi does support the delay option for modem
initialization. Add that missing option to the advanced tab to configure
that with LuCI.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-06-26 12:54:00 +02:00
Florian Eckert
7d734691ce luci-proto-3g: rename maxwait to delay option
The option maxwait is not support by the 3g netifd proto.
To standardize that rename the maxwait option to delay as in the other
proto handlers luci-proto-qmi and luci-proto-ncm.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-06-26 12:45:50 +02:00
Jo-Philipp Wich
b6e240d8c3
Merge pull request #2424 from LuKePicci/luci-proto-ppp_pppoe_host-uniq
luci-proto-ppp: fix wrong pppoe host_uniq datatype
2019-01-21 20:14:31 +01:00
Luca Piccirillo
d3781f7c35
luci-proto-ppp: fix wrong pppoe host_uniq datatype
Signed-off-by: Luca Piccirillo <luca.piccirillo@gmail.com>
2019-01-04 22:15:23 +01:00
Whitronic
f4212285d4 luci-proto-vpnc: expose defaultroute option in proto_vpnc.lua
Sometimes people only want the VPN connection to be a route to a specific
network, not the default gateway for all traffic.

I've tested this on my router and works fine!

Submitted-by: Whitronic <joao.f.vieira@gmail.com>
[reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-15 07:44:06 +01:00
Dan Lüdtke
63b86dbbbf luci-*-wireguard: Remove inactive maintainer
I tried to find a successor in the last months, but that failed.

Signed-off by Dan Luedtke <mail@danrl.com>
2018-11-10 13:54:59 +01:00
Anton Kikin
21378547ec luci-proto-3g: add missed option name for IPv6 address obtain mode
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-10-12 18:18:11 +03:00
Florian Eckert
24cf28b5ec luci-proto-pppossh: move pppossh to own package
This is a special proto which should go into a separate package.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-30 17:49:09 +08:00
Florian Eckert
cd1bce5017 luci-proto-hnet: move hnet to own package
This is a special proto which should go into a separate package.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-30 17:49:09 +08:00
Rosy Song
a5c931d16f luci-proto-ipv6: fix dependency for IPv6
Signed-off-by: Rosy Song <rosysong@rosinson.com>
2018-09-01 15:57:11 +08:00
Jo-Philipp Wich
1b2065d0be luci-proto-ppp: align keepalive defaults with current OpenWrt
Disabling LCP echos by *not* setting "option keepalive" was broken in
OpenWrt since https://dev.archive.openwrt.org/ticket/2373.html so setting
"0" in LuCI had the effect of reverting back to "5, 1" while the help
suggested otherwise.

Support for "keepalive 0" was fixed with https://git.openwrt.org/555c59230
so align LuCI now to emit "option keepalive 0" instead of removing the
option when entering "0" in the gui.

Fixes #2112
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-30 15:33:26 +02:00
Jo-Philipp Wich
73f2c37a01
Merge pull request #1989 from hanipouspilot/ncm
luci-proto-ncm: suggest both tty and wdm devices
2018-08-13 15:23:02 +02:00
Dmitry Tunin
95c38dab8f luci-proto-ncm: suggest both tty and wdm devices
Some modems are controlled only through a tty.
Autodetection of control device is broken in ncm.sh

Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
2018-07-29 02:53:01 +03:00
Jo-Philipp Wich
aae187dedf luci-proto-relay: propagate up state, do not forward netifd errors
Due to historical reasons, the relayd daemon configuration resides in the
form of a fake "config interface" section in /etc/config/network without
actually registering a protocol handler.

This causes netifd to emit an "INVALID_PROTO" error for the interface
which is technically correct, but confusing for LuCI users.

This situation needs to be resolved upstream by either moving relayd
configuration out of the network config, or by converting the relayd
service into a proper protocol handler.

Until this happens, do not report any netifd errors since we're not
operating on an actual interface.

While we're at it, also propagate the protocol up state from the fake
virtual device to ensure that LuCI displays the relay bridge as "up"
when all relayed interfaces are up as well.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-28 14:21:42 +02:00