o.value('ipv6', _('IPv6 only'));
o.modalonly = true;
+ o = s.option(form.Value, 'proto', _('Protocol'),
+ _('View the content of /etc/protocols for protocol description'));
+ o.default = 'all';
+ o.rmempty = false;
+ o.value('all');
+ o.value('tcp');
+ o.value('udp');
+ o.value('icmp');
+ o.value('esp');
+
o = s.option(form.Value, 'src_ip', _('Source address'),
_('Supports CIDR notation (eg \"192.168.100.0/24\") without quotes'));
o.datatype = 'ipaddr';
o.depends('proto', 'tcp');
o.depends('proto', 'udp');
- o = s.option(form.Value, 'proto', _('Protocol'),
- _('View the content of /etc/protocols for protocol description'));
- o.default = 'all';
- o.rmempty = false;
- o.value('all');
- o.value('tcp');
- o.value('udp');
- o.value('icmp');
- o.value('esp');
-
o = s.option(form.ListValue, 'sticky', _('Sticky'),
_('Traffic from the same source IP address that previously matched this rule within the sticky timeout period will use the same WAN interface'));
o.default = '0';