Stijn Tintel
48599d8d1d
luci-app-firewall: initial firewall4 compatibility
...
Initial changes required for firewall4 compatibility:
* depend on uc-firewall instead of firewall
* detect installed version of firewall and hide incompatible features
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
2022-01-06 15:03:57 +02:00
Jo-Philipp Wich
0b4b6380d0
luci-app-firewall: use firewall.getZoneColorStyle() in views
...
Use the new `firewall.getZoneColorStyle()` helper to apply background
color styles.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-11 13:00:50 +01:00
Jo-Philipp Wich
6c96414d9b
luci-app-firewall: adjust zone badge markup
...
No functional changes but required for styling rules.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-10 11:57:43 +01:00
Jo-Philipp Wich
f64b3d5094
luci-app-firewall: allow negative prefix lengths
...
Fixes : #4812
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-01 15:18:25 +01:00
Jo-Philipp Wich
3c4bc228a1
treewide: import utility classes explicitly
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-03 10:00:06 +02:00
Jo-Philipp Wich
f1771d14aa
luci-app-firewall: add SNAT config migration
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-19 19:38:07 +01:00
Jo-Philipp Wich
7944b0a90b
luci-app-firewall: rework rule descriptions, deduplicate code
...
Use a simple custom format string DSL to assemble the rule description
texts in the overview page.
Also move common code for shared, complex cbi options to the firewall
tool class.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-19 16:22:47 +01:00
Jo-Philipp Wich
0608ff09f8
luci-app-firewall: consolidate duplicate option code
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-16 22:16:53 +01:00
Jo-Philipp Wich
28f4a9fced
luci-app-firewall: support 'limit' and 'limit_burst' options
...
Also resync firewall translations.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-16 21:36:39 +01:00
Jo-Philipp Wich
cdf240f0a0
luci-app-firewall: support 'mark' parameter for redirects
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-16 18:17:09 +01:00
Jo-Philipp Wich
61fe2146dd
luci-app-firewall: support 'helper' and 'reflection_src' parameters for redirects
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-16 16:30:58 +01:00
Jo-Philipp Wich
a178cdb5cf
luci-app-firewall: fix family display for port forwards
...
The underlying fw3 program currently only does IPv4 port forwards while
LuCI incorrectly reports IPv4 + IPv6 for each forward. Adjust the text
accordingly to fix this.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-16 13:54:22 +01:00
Jo-Philipp Wich
37b6092aef
luci-base, luci-mod-network, luci-app-firewall: migrate luci/getHostHints
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01 12:03:33 +01:00
Jo-Philipp Wich
ed8f1c4c1c
luci-app-firewall: honour global default policies in per-zone settings
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02: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
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
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