summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wireguard/luasrc
AgeCommit message (Collapse)Author
2020-02-05treewide: convert simple Lua controllers to declarative JSONJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-11luci-app-wireguard: QR-Code enhancementsDirk Brenken
* 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>
2018-12-20luci-app-*: use default poll intervalFlorian Eckert
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-10-07luci-app-wireguard: clean up QR Code generationDirk Brenken
* no longer baffle QR code import with "(none)" values from wg dump Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-10-01luci-app-wireguard: add QR Code support plus fixesDirk Brenken
* 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-09-29luci-app-wireguard: add descriptionsrwalli
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-07-09treewide: always include cbi.jsJo-Philipp Wich
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-05-28treewide: convert HTML tables to divJo-Philipp Wich
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>
2017-05-09wireguard: preshared-key is now an attribute of the peerJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-02-27luci-app-wireguard: performance+ (less sys.exec calls)danrl
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-17luci-app-wireguard: initial commitdanrl
This application allows for monitoring of WireGuard interfaces via the Status menu. Signed-off-by: Dan Luedtke <mail@danrl.com>