Commit graph

12 commits

Author SHA1 Message Date
Florian Eckert
dd74996195 luci-app-wireguard: fix header translation in wireguard view
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-11 14:24:33 +02:00
Helge Mader
23d0cb9e5a luci-app-wireguard: show hint in status page if no entry defined yet
Signed-off-by: Helge Mader <ma@dev.tdt.de>
2020-05-11 11:25:38 +02:00
Dirk Brenken
87ff357d4c
luci-app-wireguard: QR-Code enhancements
* explain the QR-Code 'use case' and the transfered information
* limit the QR-Code information to bare minimum (per interface):
  * [Interface] A random, on the fly generated 'PrivateKey',
                the key will not be saved on the router
  * [Peer] The 'PublicKey' of that wg interface and the
           'AllowedIPs' with the default of '0.0.0.0/0, ::/0'
           to allow sending traffic to any IPv4 and IPv6 address
* the QR-Code logic will be processed only once per page load,
  and not every 5 seconds with the regular XHR refresh

See corresponding forum thread:
https://forum.openwrt.org/t/luci-app-wireguard-qr-code-shows-private-key/38133

Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-07-11 08:11:38 +02:00
Florian Eckert
121e7fea66 luci-app-*: use default poll interval
Replace all XHR poll time number with -1 so they will use the default
poll interval time value from "/etc/config/luci". If this is not set then
5 seconds as default is used.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-20 10:20:23 +01:00
Dirk Brenken
38541eeafa luci-app-wireguard: clean up QR Code generation
* no longer baffle QR code import with "(none)" values from wg dump

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-07 07:46:29 +02:00
Dirk Brenken
ca76ead1ba luci-app-wireguard: add QR Code support plus fixes
* add optional QR Code support to status page (per wg Interface),
  submitted information via QR code are:
  - [Interface] (list of) Address / PrivateKey
  - [Peer] Endpoint / PublicKey / (list of) AllowedIPs
  - support multiple interfaces and peers
* fix XHTML rendering errors with OpenWrt standard theme
* fix logical glitch with empty descriptions, remove needless variables
* left align the output for better viewing esp. with material theme
* freshen up design a little bit
* switch space indentation to tabs

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-01 11:57:38 +02:00
rwalli
0fe2e72f78 luci-app-wireguard: add descriptions
Add description fields to luci-app-wireguard similar to those in
luci-proto-wireguard.

Ref: https://github.com/openwrt/luci/commit/140f41b4
Suggested-by: "rwalli" <rwalli@gmx.net>
[squash commits, reword commit message, remove semicolons,
 remove trailing white space]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29 14:32:18 +02:00
Jo-Philipp Wich
c0de036b31 treewide: always include cbi.js
Include cbi.js in the main header template like it is done for xhr.js and
remove the page specific includes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00
Jo-Philipp Wich
067d7dc9f7 treewide: convert HTML tables to div
Mostly convert HTML tables to div based markup to allow for easier styling
in the future. Also change JS accessor code accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-28 15:18:45 +02:00
Jason A. Donenfeld
b9b64aae96 wireguard: preshared-key is now an attribute of the peer
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-05-09 16:51:40 +02:00
danrl
090913c941 luci-app-wireguard: performance+ (less sys.exec calls)
Thanks to latest developments in wireguard-tools, we can now
fetch all data we need for display using a single sys.exec()
call instead of multiple ones. This application is now
significantly smaller and runs much faster.

Added Firewall Mark feature.

Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-02-27 15:25:11 +01:00
danrl
58833aa2df luci-app-wireguard: initial commit
This application allows for monitoring of WireGuard interfaces via the
Status menu.

Signed-off-by: Dan Luedtke <mail@danrl.com>
2017-02-17 07:32:17 +01:00