Commit graph

8415 commits

Author SHA1 Message Date
Hannu Nyman
d685c2392f luci-app-noddos: backport from master
Signed-off-by: Steven Hessing <steven.hessing@gmail.com>
2017-10-20 16:45:56 -07:00
Jo-Philipp Wich
7fc88b4e6e luci-mod-admin-full: move KRACK countermeasures out of IEEE802.11w condition
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-10-18 15:51:51 +02:00
Jo-Philipp Wich
d3f0685d63 luci-mod-admin-full: tone down KRACK countermeasure description
Backport of b7be0b9d16.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-10-18 00:04:58 +02:00
Jo-Philipp Wich
701d40a76d i18n: update translations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-10-17 22:57:57 +02:00
Jo-Philipp Wich
13ce0a1e21 luci-mod-admin-full: wifi: expose wpa_disable_eapol_key_retries option
Bacport of 48ed00e5b.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-10-17 22:54:18 +02:00
Hannu Nyman
e8e8544823 i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-10-16 16:31:50 +03:00
Alexander Schlarb
079f65a628 luci-app-uhttpd: Bump default key size to 2048 bits for certificates
More about the currently recommended key sizes: https://www.keylength.com/en/compare/

Signed-off-by: Alexander Schlarb <alexander@ninetailed.ninja>

Modified to maintain the old minimum of 1024 bits for low-end devices.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit ac8a957191)
2017-08-20 08:51:33 +03:00
Alexander Schlarb
2bb1abd5ec luci-app-uhttpd: Fix certificate parameter section
Signed-off-by: Alexander Schlarb <alexander@ninetailed.ninja>
(cherry picked from commit ab64856938)
2017-08-20 08:51:23 +03:00
Jo-Philipp Wich
9ee26ac818 luci-app-nlbw: make display template XHTML compliant
This allows proper rendering in OpenWrt theme. Fixes #1284.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-07 09:57:55 +02:00
Jo-Philipp Wich
21ae7f2181 luci-app-nlbwmon: always fetch latest data
When displaying the most current accounting period, pass an empty timestamp
to the backend in order to query the current in-memory data instead of the
latest committed values.

This ensures that the dashboard always renders the most current data in its
default view.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-05 14:27:27 +02:00
INAGAKI Hiroshi
ee54fd7784 luci-app-nlbwmon: Update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-08-05 14:27:27 +02:00
Jo-Philipp Wich
0b3e1e937b luci-app-nlbwmon: remove version marker from javascripts
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-05 14:27:27 +02:00
Jo-Philipp Wich
f0c83ab341 luci-app-nlbwmon: improve initial view
Make sure that placeholder pie charts are rendered, display a hint about
yet missing data in the tables and offer a link to force-commit ("Reload")
the data.

Also fix some mixed white space, an imbalanced dom operation and sync
translation template.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-05 14:27:27 +02:00
Jo-Philipp Wich
176e1ded23 luci-app-nlbwmon: add missing charting library
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-05 14:27:26 +02:00
INAGAKI Hiroshi
1f7def64f7 luci-app-nlbwmon: Add Japanese translation
Added po templates and Japanese translation.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-08-05 14:27:26 +02:00
Jo-Philipp Wich
51a9b0df48 luci-app-nlbwmon: new package
This commit introduces luci-app-nlbwmon, a frontend for nlbwmon, the
lightweight NetLink BandWidth Montor.

The nlbwmon daemon gathers per-host traffic statistics by querying netlink
accounting data. Due to this approach, the executable is very small and does
not rely on libpcap and CPU intensive raw sockets to monitor traffic.

Depends on PR https://github.com/openwrt/packages/pull/4646

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-05 14:27:26 +02:00
Stan Grishin
580f012cf4 luci-app-advanced-reboot: initial commit
Signed-off-by: Stan Grishin <stangri@melmac.net>
(cherry picked from commit f6505fc01c)
2017-07-13 17:42:44 +03:00
Yousong Zhou
5c59947d8f luci-app-upnp: fix setting ucitrack init option
Fixes FS#693

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

(cherry picked from commit ed11130b84)
2017-07-05 23:16:46 +03:00
Kevin Darbyshire-Bryant
27dfff83cb luci-minuupnpd: use enable flag
Add a 'master' miniupnpd service enable flag rather than just relying on
rcS.d script existence.  This allows the service to be disabled
across sysupgrade, similar to minidlna.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
(cherry picked from commit 1093327a4d)
2017-07-05 23:16:19 +03:00
Kevin Darbyshire-Bryant
6fbf4c7dae luci-app-miniupnpd: restore missing luci install file
Restore luci indexcache handling incorrect removed in
387a06bb73

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
(cherry picked from commit 5ef9a3a009)
2017-07-05 23:16:07 +03:00
Yousong Zhou
8955523f04 luci-proto-openconnect: remove "interface" field
It's not needed anymore and removed in the openconnect package

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit dfd082c53b)
2017-06-19 17:48:56 +03:00
Yousong Zhou
914dfc32cc luci-proto-openconnect: allow setting mtu, password2
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit cf8146ff67)
2017-06-19 17:48:47 +03:00
Christian Schoenebeck
c79bb9641c luci-app-ddns: fix to correct system status
preset network "wan", if not configured in ddns config to correct
display system status #1117

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
[Jo-Philipp Wich: cherry-pick of 3e0492f, fixes #1193]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-12 17:55:07 +02:00
Jo-Philipp Wich
8eadde5f3b luci-app-statistics: support specifying line width in graph definitions
This allows a graph definition to explicitely request LINE1, LINE2 or
LINE3 for a data source.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-10 20:39:26 +02:00
Jo-Philipp Wich
61bc034b8d luci-app-statistics: support graph menu entries without corresponding labels
Properly render menu items for plugin instances that do not have a
corresponding label defined.

This allows for registering new graph pages solely by dropping files
into /usr/lib/lua/luci/statistics/rrdtool/definitions/

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-10 20:33:32 +02:00
Jo-Philipp Wich
7f6fc1681f luci-mod-admin-full: automatically set dns=1 for static leases with hostname
Most users likely want the hostname of a static DHCP lease to be resolveable,
even if the corresponding host is currently offline.

Adjust the form logic to automatically set 'option dns 1' whenever a name is
specified in the static lease entry.

FIxes LEDE FS#815.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-02 01:03:07 +02:00
Jo-Philipp Wich
a6054eb38a i18n: sync with master
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-01 00:47:04 +02:00
t123yh
f113f1afa7 luci-app-commands: Allow executing without downloading on public links
Signed-off-by: t123yh <t123yh@outlook.com>
2017-06-01 00:45:09 +02:00
Florian Eckert
60d43a8f03 luci-theme-openwrt: fix JavaScript nameing
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2017-06-01 00:43:37 +02:00
fantom-x
1626305b63 luci-app-hd-idle: removed dashes in menu items and text labels
"hd-idle" replaced with "HDD Idle" in the menu and on the page. All translation files updated accordingly.

Signed-off-by: Marc Benoit marcb6218@gmail.com
2017-06-01 00:40:59 +02:00
Jo-Philipp Wich
1d93bad2c3 luci-theme-freifunk: fix a few broken translation directives
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-01 00:26:03 +02:00
Jo-Philipp Wich
4b75c8d44d luci-proto-wireguard: use "Optional" instead of "Optional." as translation
This allows sharing the translation string with other components.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-01 00:25:58 +02:00
Jo-Philipp Wich
b753cc503f luci-mod-admin-full: use "Lease time" instead of "Leasetime" as translation label
This allows sharing a common translation string between DHCP and interface pages.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-01 00:25:53 +02:00
Jo-Philipp Wich
433e76e425 luci-proto-ipv6: use "Automatic" instead as "automatic" as translation label
This allows sharing a common translation string with all other protocols.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-01 00:25:49 +02:00
Jo-Philipp Wich
d6e2e91824 luci-proto-openconnect: fix authgroup translation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-01 00:25:44 +02:00
Jo-Philipp Wich
426c1043b1 luci-mod-admin-full: auto-migrate ifnames when changing VLAN configuration
This change extends the switch VLAN configuration page to automatically
adjust interface ifname options when altering VLAN settings.

For example "eth0" is changed to "eth0.1" when a previously untagged LAN
VLAN is switched to tagged on the CPU port and vice versa.

Notifications are displayed in the page header if an auto migration was
performed.

This change should make the switch configuration more user friendly and
less prone to soft bricking.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-01 00:25:38 +02:00
Cody R. Brown
e5ed0e7e78 luci-base: luci.tools.status: properly parse infinite dnsmasq leases
The expiry time in a dnsmasq lease file line may be 0 (i.e.
expiry date = 01/01/1970 00:00:00 GMT) to denote an infinite
lease time, so adjust the code to properly support that.

The expiry attribute of the lease object will be set to "false"
in case of an infinite lease. This is to mimic the odhcp code below.
If the expiry date is not equal to 0, then just do exactly what was
done before (return the os.diff of current time and ts).

Signed-off-by: Cody R. Brown <dev@codybrown.ca>
2017-06-01 00:17:32 +02:00
Daniel Dickinson
dbc1a1bfc1 base: status: For odhpcd leases display MAC formatted with colons
This should result in the MAC address display being the same
using odhcpd for v4 DHCP as when using DNSMasq for v4 DHCP.

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
2017-06-01 00:17:26 +02:00
Thorsten M
71f55447bf changed stat to lstat in nixio_lstat function
Signed-off-by: Thorsten M. <thoto@devtal.de>
2017-06-01 00:17:19 +02:00
Hannu Nyman
dc8ef82e62 i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-24 23:47:12 +03:00
amitabha
778292ec65 luci.mk: Update language name for Chinese
Rectification of non-standard name for language Chinese.
Signed-off-by: Angus Ding angus.ding@gmail.com

(cherry picked from commit d3861e7f8d)
2017-05-24 23:44:55 +03:00
Hannu Nyman
10d1c5dbb3 luci-base: support ip6ifaceid option for proto_static
Add support for 'ip6ifaceid' option for proto_static in LuCI.

Information about the option:
 The option is optional and defaults to '::1'.
 Allowed values: 'eui64', 'random', fixed value like '::1' or '::1:2'

 When IPv6 prefix (like 'a🅱️c:d::') is received from a delegating
 server, the ip6ifaceid suffix (like '::1') is used to form
 the IPv6 address ('a🅱️c:d::1') for the interface.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

(cherry picked from commit 5ca3864690)
2017-05-24 23:42:17 +03:00
Hannu Nyman
ad0585cbb4 luci-app-statistics: check that uci config sections exist
A missing or faulty luci_statistics config file may prevent
LuCI access completely already at the login phase as
the statistics config is parsed already then.

The error is like:
  .../statistics/datatree.lua:16: attempt to index upvalue 'sections' (a nil value)

User may be completely locked out of LuCI until he figures out
the need to have a proper luci_statistics config file.

Prevent the error by checking for the existence of
the uci config sections before trying to use values from them.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

(cherry picked from commit d04f667383)
2017-05-18 12:10:14 +03:00
Hannu Nyman
d7d7503a39 luci-base: add Etc/GMT timezones
Add Etc/GMT timezones like GMT+5

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit f2cf516cf7)
2017-05-18 12:09:37 +03:00
Hannu Nyman
1ccb88d136 build/zoneinfo2lua.pl: logic for Etc/GMT timezones
Add logic to add Etc/GMT timezones (like GMT+5)
although the zones are not included in zone.tab

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit f8eee09f55)
2017-05-18 12:09:28 +03:00
Hannu Nyman
6467df385f i18n: sync translations
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-09 11:07:51 +03:00
Hannu Nyman
92c78f3e80 luci-app-statistics: processes: fix graph visibility
Fix graph visibility on processes page based on plugin
instance. The overview instance is empty, while monitored
processes have their own instances.

Original version of the patch created by @koblack and
discussed in #1021

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 0a6ce20423)
2017-05-09 09:54:14 +03:00
Hannu Nyman
97ad2a9286 luci-mod-admin-full: add advice to restart cron
Cron init script starts the service only if a crontab file
exists. If there is no crontab file at boot and the user
later creates one, he needs to manually restart the service.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 1970c21e3b)
2017-05-08 16:06:06 +03:00
Jo-Philipp Wich
596f47649c luci-base: luci.dispatcher: allow overriding sysauth template
In some cases it is useful to be able to override the template used for the
sysauth login dialog.

Add a new property "sysauth_template" which allows overriding the template
name from controller files.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-06 15:07:57 +02:00
Hannu Nyman
63d61d726c luci-app-statistics: fix whitespace
* fix whitespace in config file
* place the contextswitch item corerrctly
  in the sorted options list

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 2bc2f935a0)
2017-05-02 10:12:40 +03:00