Skip to content
Snippets Groups Projects
Commit 49b1af39 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Fixed and extended ssh template and README (thx bartos@cesnet.cz)

parent d3e7b324
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@ In the corresponding action following invocation can be used:
actionban = /usr/local/bin/f2ban_XXX.sh <ip> <failures> <time>
Please, edit corresponding paths and Warden names in the corresponding
script preamble.
script preamble and check/edit contents of the IDEA template (e.g. Target IP
address in f2ban_ssh.sh).
Scripts write generated Idea_ events into warden_filer compatible
directory, so you will need to run properly configured (and registered
......
......@@ -31,9 +31,9 @@ cat >"$filer_dir/tmp/$event_id" <<EOF
"ID": "$event_id",
"DetectTime": "$detect_time",
"CreateTime": "$create_time",
"Category": ["Abusive.Spam"],
"Category": ["Attempt.Login"],
"Description": "SSH dictionary/bruteforce attack",
"Count": $failures,
"ConnCount": $failures,
"Note": "IP attempted $failures logins to SSH service",
"Source": [{
"IP4": ["$src_ip"],
......@@ -41,8 +41,10 @@ cat >"$filer_dir/tmp/$event_id" <<EOF
}],
"Target": [{
"Type": ["Anonymised"],
"IP4": ["160.217.0.0/16"],
"Anonymised": true
"IP4": ["192.0.2.0/24"],
"Anonymised": true,
"Proto": ["tcp", "ssh"],
"Port": [22]
}],
"Node": [{
"Name": "$node_name",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment