Commit graph

2096 commits

Author SHA1 Message Date
Stan Grishin
984a1afcf7 luci-app-simple-adblock: new start/stop button, better integration with simple-adblock
Signed-off-by: Stan Grishin <stangri@melmac.net>
(cherry picked from commit 768a72597c)
2018-07-17 20:52:24 +02:00
Yurii
a7e1edf936 luci-app-upnp: update Ukrainian translation
Corrections translation.

Signed-off-by: Yurii yuripet@gmail.com
(cherry picked from commit 4f5e1c7da5)
2018-07-17 20:52:24 +02:00
Jo-Philipp Wich
fb817df836 openwrt-18.06: merge master
Due to a huge number of fixes and diverging development histories, I decided
to completely merge the current LuCI master into the 18.06 release branch to
have a common code base for upcoming maintenance releases.

Some LuCI apps have minor style glitches yet but I do not deem them to be
release critical as non-default components need to be opkg-installed anyway
and the package repositories are continuously refreshed, so we do not need
to fix everything for OpenWrt 18.06.0-rc2.

The most important changes introduced by this merge are:

1) New HTTP handling library in C

  The new library should vastly reduce the required RAM for processing
  large POST bodies while implementing some slightly more strict parsing
  logic.

2) Apply/Rollback workflow

  The ubus rpcd based apply/rollback handling will automatically revert
  config changes if access to the device is lost for a certain period
  of time, this is mainly intended for preventing issues with bad
  config settings and the like.

  The feature is not 100% error-proof yet but it successfully prevents a
  large number of issues already. For final, the handling of the firewall
  conntrack cache needs to be fixed yet as adding "lockout" firewall rules
  is not yet catched due to the open HTTP session allowed by netfilter
  conntrack

3) Template markup and theme style modifications

  A large number of changes have been made to the markup in the various
  templates, mainly to allow for responsive styling of tables.

  The only theme currently making full use of that is the non-default
  OpenWrt theme which will break table rows into disjunct boxes on
  very narrow screens.

  The changes have been tested on IE 11, MS Edge, Firefox, Chrome, an
  iPhone 5s, iPhone 6 and iPad Air.

4) Initial LuCI support for displaying virtual dynamic network interfaces

  Some protocol handlers will spawn purely dynamic sub-interfaces which
  are not present in UCI. Such interfaces have been invisible in LuCI so
  far which caused confusion especialy wrt. missing IP addresses etc.

  LuCI will now display such dynamic interfaces on the interface overview.

5) Initial LuCI support for display interface runtime error information

  LuCI will now expose interface error information stored in the ubus
  runtime information by protocol handlers.

  This is mainly useful to get notified of low level problems like
  bad SIM codes are missing APN information.

6) Various XSS and CSRF bypass fixes

  A number of code places performing inadequate markup escaping have been
  fixed and the dispatcher CSRF token enforcement rules have been reworked
  to actually catch all POST security cases.

7) Initial support for running under nginx

  Various bugs have been fixed to allow LuCI to function under nginx using
  a FastCGI wrapper.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 17:22:53 +02:00
Jo-Philipp Wich
98f4c3cf50
Merge pull request #1933 from Ansuel/hostname_upnp
luci-app-upnp: add hostname info
2018-07-13 14:50:28 +02:00
Jo-Philipp Wich
4115f8cc56 luci-app-advanced-reboot: fix translation string
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 12:47:59 +02:00
Jo-Philipp Wich
5722105007 luci-app-upnp: tweak table markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 09:37:28 +02:00
Stan Grishin
3c332e4564 luci-app-advanced-reboot: support for Linksys WRT32X
Signed-off-by: Stan Grishin <stangri@melmac.net>
2018-07-10 12:33:23 -07:00
Jo-Philipp Wich
994531ea26 luci-app-adblock: align blocklist markup with recent changes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +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
Hannu Nyman
d35be37b88
Merge pull request #1871 from felixonmars/patch-1
Fix a typo in vizdata.sh
2018-07-07 20:43:08 +03:00
Ansuel Smith
afd14fb9c7
luci-app-upnp: add hostname info
This adds the hostname info in the index page of luci.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-07-03 17:46:39 +02:00
Paul Traina
b0486ab5dc luci-app-mwan3: fix aliased interfaces (@wan6) 2018-07-02 16:45:10 -07:00
Yurii
1455ab6574
luci-app-firewall: update Ukrainian translation
Updated with the latest synchronization of the translation.

Signed-off-by: Yurii yuripet@gmail.com
2018-07-01 23:48:45 +03:00
Dirk Brenken
2e2dab3e56
Merge pull request #1924 from dibdot/lxc_fix
luci-app-lxc: add backingstore support
2018-07-01 21:27:36 +02:00
Dirk Brenken
1f2d40b504 luci-app-lxc: add backingstore support
* second try to enable backingstore support, untested (see #1919)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-07-01 19:59:52 +02:00
Hannu Nyman
3699509ed2
Merge pull request #1921 from musashino205/l10n/fw-upd-ja
luci-app-firewall: update Japanese translation
2018-07-01 19:45:28 +03:00
Dirk Brenken
1fd3a16635
Merge pull request #1920 from dibdot/lxc_fix
luci-app-lxc: small fixes & cosmetics
2018-06-30 23:08:16 +02:00
Dirk Brenken
b198de11bc luci-app-lxc: small fixes & cosmetics
* backingstore support via ubus does not work, remove it for now
* fix target mapping for linuximages.org
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-06-30 22:55:41 +02:00
INAGAKI Hiroshi
ad08b56577 luci-app-firewall: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-06-30 23:19:50 +09:00
INAGAKI Hiroshi
ca0a086a2d i18n: sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-06-30 23:10:45 +09:00
Hannu Nyman
4ba85e3d82 luci-app-transmission: fix typo
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-06-29 18:20:09 +03:00
Hannu Nyman
1a36f0307e
Merge pull request #1902 from panda-mute/patch-1
Update 40_luci-transmission
2018-06-29 18:04:57 +03:00
Jo-Philipp Wich
485e5c930f luci-app-upnp: cleanup UPnP lease status markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-28 09:43:45 +02:00
Jo-Philipp Wich
1b01656451
Merge pull request #1906 from ldir-EDB0/typofix
luci-app-rp-pppoe: Fix typo
2018-06-25 11:19:36 +02:00
Jo-Philipp Wich
483c9d35b2
Merge pull request #1895 from jow-/master
Responsive OpenWrt theme
2018-06-25 08:49:44 +02:00
Kevin Darbyshire-Bryant
7cf8f97186 luci-app-rp-pppoe: Fix typo
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2018-06-23 17:14:23 +01:00
Jo-Philipp Wich
c7ee1ffcf1 luci-app-shadowsocks-libev: cleanup section add markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 18:01:43 +02:00
Jo-Philipp Wich
db4139b149 luci-app-travelmate: consolidate markup
Rework the various application view templates to properly render with the
latest responsive design changes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 18:01:43 +02:00
Jo-Philipp Wich
ce8101ae75 luci-app-upnp: rework lease status indicator
Turn the dynamic lease status table into responsive table by using the
cbi_update_table() helper in conjunction with title annotation attributes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 18:01:43 +02:00
Jo-Philipp Wich
e097d3f734 luci-app-firewall: cleanup template markup
Rework the cbi section add template markup to properly render with the
latest responsive design changes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 18:01:43 +02:00
Kevin Darbyshire-Bryant
65cfbd8f75 luci-app-bcp38: improve interface selection dropdown
Certain types of interface were excluded from bcp38's concept of
upstream wan interface e.g. pppoa-wan

Shamelessly copies the interface list generation from luci-app-sqm which
solved exactly the same problem and gives additional clues by displaying
the firewall zone (typically wan/lan etc)

Run-tested-on: DGN3500

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2018-06-23 08:52:14 +01:00
Jo-Philipp Wich
5142e40f9e luci-app-firewall: update cbi models
- allow multiple src/dest ips for rules (#1637)
 - restrict ICMP type list to ICMP protocol
 - add section title callbacks
 - remove size annotations
 - fix validation error with aliased zone fields (#1882)

Fixes #1637, #1882.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-22 11:15:39 +02:00
panda-mute
d024d73da7
Update 40_luci-transmission
Fix typo
2018-06-22 06:53:20 +08:00
Yurii
1dcf85b78d
luci-app-firewall: update Ukrainian translation
Updated with the latest synchronization of the translation.
2018-06-18 20:25:43 +03:00
Hannu Nyman
6cc547fdc6
Merge pull request #1891 from YuriPet/master
Correcting native name Ukrainian language & update Ukrainian translation
2018-06-18 19:52:01 +03:00
INAGAKI Hiroshi
88f03a6142 luci-app-firewall: update Japanese translation
Updated japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-06-18 16:57:08 +09:00
INAGAKI Hiroshi
7001e8f3b1 luci-app-firewall: sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-06-18 15:57:22 +09:00
Yurii
83dc5e075e
luci-app-firewall: update Ukrainian translation 2018-06-17 23:37:21 +03:00
Yurii
de62263f73
luci-app-upnp: update Ukrainian translation 2018-06-17 23:35:49 +03:00
INAGAKI Hiroshi
fe591dd1cc i18n: fix syntax errors in Ukrainian po
"Content-Type: text/plain; charset=UTF-8" was wrote twice in each
of base.po and firewall.po, and one was an incorrect place which
was the cause of the errors.

And, The escape in abbr HTML tag was incorrect, so I fixed it.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-06-16 23:36:18 +09:00
Zheng Qian
934e954a76 luci-app-firewall: zh_CN: change better translation for offloading
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-06-12 12:07:33 +08:00
Zheng Qian
21a1cc9d9b luci-app-firewall: zh_CN: change better translation for offloading
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-06-12 12:06:34 +08:00
Hannu Nyman
9abf409a34
Merge pull request #1877 from Ansuel/ddnsipkg
luci-app-ddns: use standard pkg info function
2018-06-11 22:08:04 +03:00
Ansuel Smith
492d4d91b9
luci-app-ddns: use standard pkg info function
DDns script call another sh script to check ddns-scripts version. We can use the quicker IPKG.info function instead of execute another slow command.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-11 17:13:31 +02:00
Kristian Evensen
d3aa12b8ed luci-app-firewall: Fix typo in forwards redirect
When creating a forwarding rule with protocol set to other, a user is
forwarded to the configuration page. The URL for the configuration page
contained a typo - the user was forwarded to
admin/network/firewall/redirect/cfg... and not
admin/network/firewall/forwards/cfg..., leading to a 404.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
2018-06-11 07:10:48 +02:00
Hannu Nyman
8363d0ad6c
Merge pull request #1875 from YuriPet/master
luci-base & luci-app-firewall: update Ukrainian translation
2018-06-10 18:04:32 +03:00
Tom Hodder
658d11e751 luci-app-firewall: disable port fields when protocol is not TCP or UDP
It's currently possible to generate nonsensical firewall rules by inputting
combinations which include:

i) protocols other than UDP/TCP
ii) source and destination ports.

There is some discussion of the issue on the forum here and the issue is
here; #1850.

This patch makes fields like src_port and dest_port depend on protocol being
tcp, udp or "tcp udp" in the input, forwarding and source NAT forms.

Signed-off-by: Tom Hodder <tom@limepepper.co.uk>
[reword commit message, squash commits]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-10 16:24:07 +02:00
Yurii
cebe38dcfe
luci-app-firewall: update Ukrainian translation
Updated Ukrainian translations.

Signed-off-by: Yurii yuripet@gmail.com
2018-06-10 17:16:01 +03:00
Hannu Nyman
fad02ac8d7
Merge pull request #1868 from sotux/master-zh_CN
Update Simplified Chinese translation
2018-06-09 17:53:27 +03:00
Zheng Qian
966e86cd06 luci-app-adblock: update Simplified Chinese translation
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2018-06-09 22:50:49 +08:00