mirror of
https://github.com/webmin/webmin.git
synced 2026-09-14 09:30:39 +01:00
More work on default jail page
This commit is contained in:
@@ -46,18 +46,36 @@ print &ui_table_row($text{'jail_ignoreip'},
|
||||
$text{'default'}." (".$def_ignoreip.")"));
|
||||
|
||||
# Backend to check for file changes
|
||||
# XXX
|
||||
my $backend;
|
||||
my $backend = &find_value("backend", $jail);
|
||||
print &ui_table_row($text{'jail_backend'},
|
||||
&ui_select("backend", $backend || "auto",
|
||||
[ [ "auto", $text{'jail_auto'} ],
|
||||
[ "gamin", $text{'jail_gamin'} ],
|
||||
[ "polling", $text{'jail_polling'} ] ]));
|
||||
|
||||
# Email destination
|
||||
# XXX
|
||||
my $destemail;
|
||||
my $destemail = &find_value("destemail", $jail);
|
||||
print &ui_table_row($text{'jail_destemail'},
|
||||
&ui_opt_textbox("destemail", $destemail, 40,
|
||||
$text{'jail_none'}));
|
||||
|
||||
# Default ban action
|
||||
my $banaction;
|
||||
my @actions = &list_actions();
|
||||
my $banaction = &find_value("banaction", $jail);
|
||||
print &ui_table_row($text{'jail_banaction'},
|
||||
&ui_select("banaction", $banaction,
|
||||
[ [ "", "<$text{'jail_none'}>" ],
|
||||
map { &filename_to_name($_->[0]->{'file'}) } @actions ],
|
||||
1, 0, $banaction ? 1 : 0));
|
||||
|
||||
# Default protocol to ban
|
||||
my $protocol;
|
||||
my $protocol = &find_value("protocol", $jail);
|
||||
print &ui_table_row($text{'jail_defprotocol'},
|
||||
&ui_select("protocol", $protocol,
|
||||
[ [ '', "<$text{'jail_none'}>" ],
|
||||
[ 'tcp', 'TCP' ],
|
||||
[ 'udp', 'UDP' ],
|
||||
[ 'icmp', 'ICMP' ] ]));
|
||||
|
||||
print &ui_table_end();
|
||||
print &ui_form_end([ [ undef, $text{'save'} ] ]);
|
||||
|
||||
@@ -76,7 +76,7 @@ jails_enabled=Enabled?
|
||||
jails_action=Resulting actions
|
||||
jails_delete=Delete Selected Jails
|
||||
jails_def=Edit Jail Defaults
|
||||
jails_defdesc=Edit default settings and limits that apply to all the jails listed above.
|
||||
jails_defdesc=Edit default settings and limits that apply to all the jails listed above, such as the number of required matches and the time to ban an IP for.
|
||||
jails_return=list of jails
|
||||
jails_derr=Failed to delete jails
|
||||
jails_enone=None selected
|
||||
@@ -110,6 +110,14 @@ jail_elogpath=All log files must be absolute paths or patterns
|
||||
jail_emaxretry=Matches before applying action must be a number greater than zero
|
||||
jail_efindtime=Delay between matches must be a number greater than zero
|
||||
jail_ebantime=Time to ban an IP must be a number greater than zero
|
||||
jail_backend=Check for log file updates using
|
||||
jail_auto=Decide automatically
|
||||
jail_gamin=Gamin file alteration monitor
|
||||
jail_polling=Background polling
|
||||
jail_destemail=Default notification email
|
||||
jail_none=None set
|
||||
jail_banaction=Default action to apply
|
||||
jail_defprotocol=Default protocol for actions
|
||||
|
||||
jaildef_title=Default Jail Options
|
||||
jaildef_header=Defaults for all jails
|
||||
|
||||
Reference in New Issue
Block a user