mirror of
https://github.com/openwrt/luci
synced 2025-01-07 03:27:12 +08:00
luci-app-firewall: add reflection_zone field to forwards
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 3f20598acf
)
This commit is contained in:
parent
e98243ef9e
commit
e4c46338b1
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user