1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add src port bypass

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-05-13 21:46:35 +02:00
parent 76ae9b0608
commit 483e96728b
2 changed files with 64 additions and 0 deletions

View file

@ -78,6 +78,29 @@ return L.view.extend({
o = s.option(form.Value, 'note', _('Note'));
o.rmempty = true;
s = m.section(form.GridSection, 'src_port', _('Ports source'));
s.addremove = true;
s.anonymous = true;
o = s.option(form.Value, 'sport', _('port'));
o.rmempty = false;
o = s.option(form.ListValue, 'proto', _('protocol'));
o.default = 'tcp';
o.rmempty = false;
o.value('tcp');
o.value('udp');
o.value('icmp');
o = s.option(widgets.DeviceSelect, 'interface', _('Interface'));
o.noaliases = true;
o.noinactive = true;
o.nocreate = true;
o.ucioption = 'dev';
o = s.option(form.Value, 'note', _('Note'));
o.rmempty = true;
s = m.section(form.GridSection, 'macs', _('MAC-Address'));
s.addremove = true;
s.anonymous = true;