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

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

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