4 'require tools.widgets as widgets';
10 m = new form.Map('crowdsec', _('CrowdSec'),
11 _('Gain <a href="http://www.crowdsec.net">crowd-sourced</a> protection against malicious IPs. ' +
12 'Benefit from the most accurate CTI in the world.'));
15 s = m.section(form.TypedSection, 'bouncer', _('Bouncer'));
18 o = s.option(form.Flag, 'enabled', _('Enable'));
22 o = s.option(form.Value, 'api_url', _('URL of local API'),
23 _('The URL of your local CrowdSec API instance.'));
27 o = s.option(form.Value, 'api_key', _('API key'),
28 _('The key of your bouncer as registered on the local CrowdSec API.'));
33 o = s.option(widgets.DeviceSelect, 'interface', _('Filtered interfaces'),
34 _('List of interfaces with traffic to be filtered.'));
39 o = s.option(form.Flag, 'ipv6', _('Enable support for IPv6'),
40 _('If unchecked IPv6 will not be filtered.'));
44 o = s.option(form.Flag, 'filter_input', _('Filter input chain'),
45 _('Block packets from filtered interfaces addressed to the router itself.'));
49 o = s.option(form.Flag, 'filter_forward', _('Filter forward chain'),
50 _('Block packets from filtered interfaces addressed to devices in your network.'));
54 o = s.option(form.Flag, 'deny_log', _('Log filtered ip addresses'),
55 _('If checked, a log statement will be added to the firewall rule and blocked ' +
56 'ip addresses will be logged to System Log.'));