Commit graph

20 commits

Author SHA1 Message Date
Oldřich Jedlička
7a42a6eaec luci-app-fwknopd: Show QR codes for custom configuration.
* Addsed /etc/fwknop/access.conf parsing to show QR codes.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2020-10-31 09:41:19 +01:00
Oldřich Jedlička
6059f6a1a6 luci-app-fwknopd: Remove defaults.
Remove setting values in `uci-defaults`, which can be changed from
LuCI directly:

 * Keys can be generated from LuCI, so it is not necessary to set
   them.
 * ENABLE_IPT_FORWARDING and ENABLE_NAT_DNS options can be set in
   LuCI.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2020-10-31 09:41:19 +01:00
Oldřich Jedlička
e24415ac12 luci-app-fwknopd: Client-side rendering and improvements/fixes.
* Use client-side rendering.
 * Asynchronous QR code generation and on-the-fly updates.
 * Added button to generate keys.
 * Added keys validation (empty, __CHANGEME__ and CHANGEME values are not
   valid).
 * Added SOURCE option non-empty validation (SOURCE is mandatory field).
 * Added network and DESTINATION options.
 * Use checkboxes for Y/N options instead of text fields.
 * Fix the qrencode tool, which currently has only `--inline` option, not
   `-I`. Use `--inline` instead.
 * Improve configuration handling by removing the key type from the config
   file. The key type is deduced from the actual values (normal/base64).
 * Provide migration script (clean-up of stale keytype/hkeytype values in
   config).
 * Fixed usage of translations.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2020-10-31 09:40:38 +01:00
Jo-Philipp Wich
8f34e105c0 treewide: add ACL annotations to menu entries
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17 12:40:31 +02:00
Jo-Philipp Wich
43e872871a treewide: stage ACL rules for legacy applications
Fixes: #3866
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-10 23:21:35 +02:00
Florian Eckert
1f8a3c0417 luci.mk: move /tmp/luci-indexcache remove to package postinst script
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-02-14 09:20:33 +01:00
Jo-Philipp Wich
625abbfdbe treewide: convert simple Lua controllers to declarative JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-05 16:52:58 +01:00
Richard Yu
814ad96df9 treewide: remove useless ucitrack definitions
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-12-25 18:02:54 +01:00
Balázs Úr
39196b0de9 luci-app-fwknopd: fix typos
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-20 23:12:48 +01:00
Jonathan Bennett
cfbeca728e luci-app-fwknop: add inline option to qrencode usage
The qrencode update in the packages repo includes a patch that
adds the --inline option.  We use that option to generate a
proper inline SVG image.
Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
2017-10-16 12:29:31 -05:00
Jonathan Bennett
9be2b76096 luci-app-fwknopd: add the -q option to UCI
Thanks to spacezorro on Github for suggesting this.  The quiet tag suppresses the error messages if no key is present.
2017-10-15 22:21:05 -05:00
Jonathan Bennett
e52a4b5cea luci-app-fwknopd: Prep for libqrencode update
An update for libqrencode requires that we explicitly ask for an SVG output.  This continues to work properly with the old version.  Making the change here before updating the libqrencode package.

Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
2017-10-15 22:12:18 -05:00
Jonathan Bennett
085fb17a11 Luci-app-fwknopd: add quotation marks to squash error
In some cases, the missing quotation marks can cause error messages.  Although harmless, adding the quotation marks for correctness.

Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
2017-10-15 21:33:15 -05:00
Jonathan Bennett
4b7a00858e luci-app-fwknop: Adds a check to not overwrite user configured keys
Signed-off-by: Jonathan Bennett <JBennett@Incomsystems.biz>
2017-10-13 23:39:51 -05:00
Jonathan Bennett
846bdf4d80 [luci-app-fwknopd] Remove usage of dynamic tag.
Also adds NAT-DNS as a default setting, and enables a QR-code per access.conf entry
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2017-01-09 01:55:19 -06:00
Jo-Philipp Wich
8eaac4b637 Use numeric prefixes for uci-defaults scripts
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-27 16:50:19 +01:00
Jonathan Bennett
9d69f61f4c Luci-app-fwknopd:add a couple config options to the interface
Minor tweaks to uci-defaults
refresh translation files
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2015-06-10 16:10:56 -05:00
Jonathan Bennett
30b8097f65 Luci-app-fwknopd: Update uci-defaults as key-gen is now exposed in the fwknopd binary
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-22 12:48:06 -05:00
Jonathan Bennett
4ccb221f6d luci-app-fwknopd: Add qr code support
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-20 13:02:11 -05:00
Jonathan Bennett
fd130d0ce7 Add initial luci-app-fwknopd - a way to control the firewall knock daemon from luci
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-12 21:10:00 -05:00