Commit graph

118 commits

Author SHA1 Message Date
INAGAKI Hiroshi
f9a05f3743 luci-app-firewall: update Japanese translation
Updated Japanese translations and remove unused msgid/msgstr sets.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-27 22:35:19 +09:00
INAGAKI Hiroshi
be275fd42a i18n: sync translations
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-27 02:30:20 +09:00
Jo-Philipp Wich
d25f95c93d luci-app-firewall: explicitely set 'DNAT' target on new forwards
Fixes: #2920
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26 12:36:04 +02:00
Jo-Philipp Wich
df77b47bad luci-app-firewall: add support for further per-zone options
This commit introduces support for zone devices, subnets, conntrack helpers
and iptables extra options.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 16:46:51 +02:00
Jo-Philipp Wich
0be4ad51a0 luci-app-firewall: fix cbi form for rules
- Set src/dest defaults only in initial section create state, otherwise it
   is impossible to specify output rules
 - Get rid of dest_remote/dest_local widget switching and implement change
   logic directly in tools.widgets.CBIZoneSelect
 - Remove leftover debug code

Ref: https://github.com/openwrt/luci/issues/2889
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-21 22:35:24 +02:00
Anton Kikin
b15c62071c luci-app-firewall: format protocol family for forwards and rules
Fixes: #2878
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-18 12:46:00 +03:00
Yurii
f38719eabd
luci-app-firewall: update Ukrainian translation
Updates, fixes and additions.

Signed-off-by: Yurii <yuripet@gmail.com>
2019-07-16 21:18:01 +03:00
INAGAKI Hiroshi
50b357d24d luci-app-firewall: update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-16 13:21:06 +09:00
Florian Eckert
03067a0cf6
Merge pull request #2861 from castillofrancodamian/firewall
luci-app-firewall: Update Spanish translation
2019-07-14 13:50:46 +02:00
Franco Castillo
ec8e8615c3 luci-app-firewall: Update Spanish translation
Update Spanish translation.

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-07-13 23:10:50 -03:00
Anton Kikin
a9dd675374 luci-app-firewall: update Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-13 23:08:40 +03:00
INAGAKI Hiroshi
19c4b71af4 i18n: sync translations
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-13 19:23:18 +08:00
Yurii
580719ab97 luci-app-firewall: update Ukrainian translation
Signed-off-by: Yurii <yuripet@gmail.com>
2019-07-12 09:22:51 +02:00
Jo-Philipp Wich
f970c485cf treewide: switch to shared isObject(), toArray() and sortedKeys() helpers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 20:11:35 +02:00
Jo-Philipp Wich
9c16090780 luci-app-firewall: switch to client side CBI views
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Martin Schiller
7bbd54f43f luci-app-firewall: add some german translations
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-06-26 14:58:01 +02:00
Franco Castillo
79f883f822 luci-app-firewall: Update Spanish translation
Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-05-16 22:32:26 -03:00
Franco Castillo
6d1a8490d1 luci-app-firewall: Update Spanish translation
Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-05-15 00:35:54 -03:00
Franco Castillo
7b343b83df luci-app-firewall: Update Spanish translation
Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-04-20 20:26:33 -03:00
Franco Castillo
908bd72725 luci-app-firewall: Update Spanish translation
Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-03-27 14:23:10 -03:00
Franco Castillo
34634b2838 luci-app-firewall: Update Spanish translation
Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-03-01 17:36:53 -03:00
Franco Castillo
26bed1e806 luci-app-firewall: Update Spanish translation
Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-02-28 14:42:09 -03:00
Franco Castillo
d3133da6b9 luci-app-firewall: Update Spanish translation
Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-02-26 21:11:32 -03:00
Franco Castillo
694e301ad9 luci-app-firewall: Update Spanish translation
Update Spanish translation

Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-02-21 12:46:03 -03:00
Yurii
47967e52e8
luci-app-firewall: update Ukrainian translation
Signed-off-by: Yurii yuripet@gmail.com
2018-12-29 23:27:55 +02:00
Dirk Brenken
8db75255f7 luci-app-firewall: remove hinting
Remove firewall hinting as discussed in #2340

Signed-off-by: Dirk Brenken <dev@brenken.org>
2018-11-28 13:55:42 +01:00
Jo-Philipp Wich
520a6add52 luci-app-firewall: remove references to cbi_bind()
Use the standard addEventListener() instead. Also remove an old
cbi_validate_field() call referencing a not existing field.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Hannu Nyman
40de466475 i18n: sync translations, add location annotatations
Thanks to a recent commit, the translation files will now
have info about locations where the string is used. That
can help is deciding the correct translation, as all contexts
are more easily found.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-11-07 18:10:59 +02:00
Darius
f0141773ac luci-app-firewall: remove unused code
- unused requirements removed
 - unused variable and foreach loop removed

Signed-off-by: Darius <darius.joksas@teltonika.lt>
[slightly reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29 13:55:53 +02:00
Luiz Angelo Daros de Luca
728501dd57 i18n: update pt-br translation
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2018-09-20 21:58:33 -03:00
Martin Schiller
5f7c695848 i18n: sync translations
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2018-09-12 11:17:30 +02:00
Anton Kikin
299988e9cd luci-app-firewall: fix and update Russian translation
Add missing translations and update existing not quite correct translations.
Removed redundant <br> tags from translations.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-09-06 19:49:28 +03:00
Jo-Philipp Wich
809d3b9371
Merge pull request #2040 from yangfl/master
luci-app: update Chinese translation
2018-08-13 15:23:27 +02:00
Jo-Philipp Wich
bf123fb7c4 luci-app-firewall: allow "open ports" when no wan zone exists
Arguably this makes little if no wan zone exists but prefer consistency
over heuristics and always render the "open port" shortcut.

Fixes #2056
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-13 09:23:26 +02:00
yangfl
9711120e06 luci-app: update Chinese translation
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-08-11 15:46:07 +08: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
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
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
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
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
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
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