function fail2ban_defaults in Fail2ban Firewall Integration 7
Assemble an array of default settings.
3 calls to fail2ban_defaults()
- fail2ban_admin_settings in ./
fail2ban.admin.inc - Return the settings form.
- fail2ban_syslog in ./
fail2ban.module - The function that does the actual work, writing a log message.
- fail2ban_whitelist in ./
fail2ban.module - Check if a given address is whitelisted.
File
- ./
fail2ban.module, line 198
Code
function fail2ban_defaults() {
return array(
'logstring' => 'Submitting address [!address] to the firewall',
'whitelist' => "127.0.0.0/8\n" . ip_address(),
'logopt' => array(
'identifier' => 'drupal',
'options' => array(
LOG_ODELAY,
),
'facility' => LOG_USER,
'priority' => array(
LOG_NOTICE,
),
),
);
}