abusesa: Add abusesa::recorder
This commit is contained in:
parent
f0a48f506c
commit
995d01d38e
3 changed files with 260 additions and 0 deletions
11
abusesa/templates/recorder/probe.erb
Normal file
11
abusesa/templates/recorder/probe.erb
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
NETWORK_IFC="<%= @interface_real %>"
|
||||
CAPTURE_DIR="/var/lib/recorder/<%= @name %>"
|
||||
SNAPLEN="<%= @snaplen %>"
|
||||
KEEPTIME="<%= @keeptime %>"
|
||||
BLOCKSIZE="<%= @blocksize %>"
|
||||
FILTER="<%= @filter %>"
|
||||
OPTIONS="<%= @probeopt %>"
|
||||
|
||||
. /etc/abusesa/abusesa-functions
|
14
abusesa/templates/recorder/remote.erb
Normal file
14
abusesa/templates/recorder/remote.erb
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
CAPTURE_DIR="/var/lib/recorder/<%= @name %>"
|
||||
PRIVATE_CERT="<%= @puppet_ssldir %>/private_keys/<%= @homename %>.pem"
|
||||
PUBLIC_CERT="<%= @puppet_ssldir %>/certs/<%= @homename %>.pem"
|
||||
PORT="<%= @remoteport %>"
|
||||
<% if @collab.is_a?(Array) -%>
|
||||
COLLAB="<%= @collab.join(" ") %>"
|
||||
<% else -%>
|
||||
COLLAB="<%= @collab %>"
|
||||
<% end -%>
|
||||
OPTIONS="<%= @remoteopt %>"
|
||||
|
||||
. /etc/abusesa/abusesa-functions
|
Loading…
Add table
Add a link
Reference in a new issue