summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorPaul Dee <itsascambutmailmeanyway@gmail.com>2023-02-17 13:56:40 +0100
committerJo-Philipp Wich <jo@mein.io>2023-03-29 15:33:37 +0200
commitd0d891c23eb65da42ae6c1b8f0156e971abea5b3 (patch)
tree3a60c486cdd1002fbb929cc6989dfece38d9f01b /applications
parentf407a013ba1e889ba4cd09eaf456724cb41e1537 (diff)
luci-app-firewall: Add ipset field to forwards (redirects)
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js8
1 files changed, 8 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 149e4f0f33..66f50f799e 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
@@ -240,6 +240,14 @@ return view.extend({
o.nocreate = true;
o.default = 'wan';
+ o = s.taboption('advanced', form.Value, 'ipset', _('Use ipset'));
+ uci.sections('firewall', 'ipset', function(s) {
+ if (typeof(s.name) == 'string')
+ this.value(s.name, s.comment ? '%s (%s)'.format(s.name, s.comment) : s.name);
+ });
+ o.modalonly = true;
+ o.rmempty = true;
+
o = fwtool.addMACOption(s, 'advanced', 'src_mac', _('Source MAC address'),
_('Only match incoming traffic from these MACs.'), hosts);
o.rmempty = true;