|
|
@ -12,39 +12,46 @@ $OUT .=<<"EOF"; |
|
|
|
[http-overflows] |
|
|
|
[http-overflows] |
|
|
|
enabled = true |
|
|
|
enabled = true |
|
|
|
filter = apache-overflows |
|
|
|
filter = apache-overflows |
|
|
|
port = $port |
|
|
|
|
|
|
|
protocol = tcp |
|
|
|
|
|
|
|
name = apache-overflows |
|
|
|
|
|
|
|
$action |
|
|
|
|
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
|
|
|
|
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .= " sendmail[name="Apache (overflows)",dest=$maildest]\n" |
|
|
|
|
|
|
|
if ($mail eq 'enabled'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"EOF"; |
|
|
|
|
|
|
|
|
|
|
|
[http-noscript] |
|
|
|
[http-noscript] |
|
|
|
enabled = true |
|
|
|
enabled = true |
|
|
|
filter = apache-noscript |
|
|
|
filter = apache-noscript |
|
|
|
port = $port |
|
|
|
|
|
|
|
protocol = tcp |
|
|
|
|
|
|
|
name = apache-noscript |
|
|
|
|
|
|
|
$action |
|
|
|
|
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
|
|
|
|
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .= " sendmail[name="Apache (noscript)",dest=$maildest]\n" |
|
|
|
|
|
|
|
if ($mail eq 'enabled'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"EOF"; |
|
|
|
|
|
|
|
|
|
|
|
[http-scan] |
|
|
|
[http-scan] |
|
|
|
enabled = true |
|
|
|
enabled = true |
|
|
|
filter = apache-scan |
|
|
|
filter = apache-scan |
|
|
|
port = $port |
|
|
|
|
|
|
|
protocol = tcp |
|
|
|
|
|
|
|
name = apache-scan |
|
|
|
|
|
|
|
$action |
|
|
|
|
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
|
|
|
|
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .= " sendmail[name="Apache (scan)",dest=$maildest]\n" |
|
|
|
|
|
|
|
if ($mail eq 'enabled'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"EOF"; |
|
|
|
|
|
|
|
|
|
|
|
[http-auth] |
|
|
|
[http-auth] |
|
|
|
enabled = true |
|
|
|
enabled = true |
|
|
|
filter = apache-auth |
|
|
|
filter = apache-auth |
|
|
|
port = $port |
|
|
|
|
|
|
|
protocol = tcp |
|
|
|
|
|
|
|
name = apache-auth |
|
|
|
|
|
|
|
$action |
|
|
|
|
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
|
|
|
|
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .= " sendmail[name="Apache (auth)",dest=$maildest]\n" |
|
|
|
|
|
|
|
if ($mail eq 'enabled'); |
|
|
|
} |
|
|
|
} |
|
|
|