summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cassette <julien.cassette@gmail.com>2023-07-12 14:18:35 +0200
committerJo-Philipp Wich <jo@mein.io>2023-07-27 13:12:12 +0200
commite4c46338b196e486a88b1a75b78e283708c82bc4 (patch)
treea9c030ffbfb313bdbb851c5b3794962ae13a7393
parente98243ef9eb838cca80cdd6d1bd0cf69a509d103 (diff)
luci-app-firewall: add reflection_zone field to forwardsopenwrt-21.02
This allows to to define multiple zones for NAT reflection rules. Fixes: #1560 Signed-off-by: Julien Cassette <julien.cassette@gmail.com> (cherry picked from commit 3f20598acf57759aeda8ef5448e60f5a70e532f9)
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
index 114ff71e9a..f8240e13eb 100644
--- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
+++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
@@ -259,6 +259,12 @@ return view.extend({
uci.set('firewall', section_id, 'reflection_src', (value != 'internal') ? value : null);
};
+ o = s.taboption('advanced', widgets.ZoneSelect, 'reflection_zone', _('Reflection zones'), _('Zones from which reflection rules shall be created. If unset, only the destination zone is used.'));
+ o.nocreate = true;
+ o.multiple = true;
+ o.modalonly = true;
+ o.depends('reflection', '1');
+
o = s.taboption('advanced', form.Value, 'helper', _('Match helper'), _('Match traffic using the specified connection tracking helper.'));
o.modalonly = true;
o.placeholder = _('any');