Commit 32f5aba6 authored by Cool Fire's avatar Cool Fire
parents 6bb858c8 6e277d00
......@@ -7,6 +7,8 @@ require 'ipaddr'
fw_logfile = '/home/coolfire/fw_block.log'
f2b_logfile = '/var/log/fail2ban.log'
cc_address = 'coolfire@insomnia247.nl'
iplist = Array.new
# Get the date
......@@ -107,6 +109,11 @@ This email was automatically generated. You are receiving this email because you
Kind regards,
The Insomnia 24/7 team
Target server addresses:
80.112.131.85
2001:470:1f15:958:222:64ff:fe9a:7c78
Suricata hits:
#{fw_details}
......@@ -115,7 +122,7 @@ Fail2ban hits:
MESSAGE_END
# Send out mail
%x(echo '#{mail}' | mail -s "Abuse from #{ip.to_s}" "#{abuse_contact}" )
%x(echo '#{mail}' | mail -s "Abuse from #{ip.to_s}" -c "#{cc_address}" #{abuse_contact}" )
# Don't batter our upstram mail servers
sleep(2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment