|
|
@ -55,4 +55,37 @@ EOF |
|
|
|
|
|
|
|
|
|
|
|
$OUT .= " smeserver-sendmail[name=\"Apache (auth)\",dest=$maildest]\n" |
|
|
|
$OUT .= " smeserver-sendmail[name=\"Apache (auth)\",dest=$maildest]\n" |
|
|
|
if ($mail eq 'enabled'); |
|
|
|
if ($mail eq 'enabled'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[http-badbots] |
|
|
|
|
|
|
|
enabled = true |
|
|
|
|
|
|
|
filter = apache-badbots |
|
|
|
|
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
|
|
|
|
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime] |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .= " smeserver-sendmail[name=\"Apache (badbots)\",dest=$maildest]\n" |
|
|
|
|
|
|
|
if ($mail eq 'enabled'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[http-shellshock] |
|
|
|
|
|
|
|
enabled = true |
|
|
|
|
|
|
|
filter = apache-shellshock |
|
|
|
|
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
|
|
|
|
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime] |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .= " smeserver-sendmail[name=\"Apache (shellshock)\",dest=$maildest]\n" |
|
|
|
|
|
|
|
if ($mail eq 'enabled'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[http-fakegooglebot] |
|
|
|
|
|
|
|
enabled = true |
|
|
|
|
|
|
|
filter = apache-fakegooglebot |
|
|
|
|
|
|
|
logpath = /var/log/httpd/error_log |
|
|
|
|
|
|
|
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime] |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$OUT .= " smeserver-sendmail[name=\"Apache (fakegooglebot)\",dest=$maildest]\n" |
|
|
|
|
|
|
|
if ($mail eq 'enabled'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|