forked from elastiflow/samplicator_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (72 loc) · 3.35 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#------------------------------------------------------------------------------
# Copyright 2019 Robert Cowart
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#------------------------------------------------------------------------------
version: '3'
services:
# The usage convention for samplicate is:
# $ samplicate [<option>...] [<destination>...]
#
# The following <option> parameters are available:
# -d <level> to set the debugging level
# -s <address> to set interface address on which to listen for incoming packets (default any)
# -p <port> to set the UDP port on which to listen for incoming packets (default 2000)
# -b <buflen> size of receive buffer (default 65536)
# -c <configfile> specify a config file to read
# -x <delay> to specify a transmission delay after each packet, in units of microseconds
# -S maintain (spoof) source addresses
# -n don't compute UDP checksum (only relevant with -S)
# -f fork program into background
# -m <pidfile> write the process ID to a file
# -4 IPv4 only
# -6 IPv6 only
# -h to print a usage message and exit
# -u <pdulen> size of max pdu on listened socket (default 65536)
#
# Each <destination> is specified as <addr>[/<port>[/<interval>[,ttl]]]
# <addr> IP address of the receiver
# <port> port UDP number of the receiver (default 2000)
# <freq> number of received datagrams between successive copied datagrams for this receiver.
# <ttl> The TTL (IPv4) or hop-limit (IPv6) for outgoing datagrams.
# The following services are examples for forwarding common UDP packets to multiple sources.
samplicator-netflow:
image: elastiflow/samplicator:1.0.1_1.3.8rc1
container_name: samplicator-netflow
restart: unless-stopped
network_mode: host
command: -s 0.0.0.0 -p 2055 -S -d 0 192.0.2.11/2055 192.0.2.12/2055
samplicator-ipfix:
image: elastiflow/samplicator:1.0.1_1.3.8rc1
container_name: samplicator-ipfix
restart: unless-stopped
network_mode: host
command: -s 0.0.0.0 -p 4739 -S -d 0 192.0.2.11/4739 192.0.2.12/4739
samplicator-sflow:
image: elastiflow/samplicator:1.0.1_1.3.8rc1
container_name: samplicator-sflow
restart: unless-stopped
network_mode: host
command: -s 0.0.0.0 -p 6343 -S -d 0 192.0.2.11/6343 192.0.2.12/6343
samplicator-syslog:
image: elastiflow/samplicator:1.0.1_1.3.8rc1
container_name: samplicator-syslog
restart: unless-stopped
network_mode: host
command: -s 0.0.0.0 -p 514 -S -d 0 192.0.2.11/514 192.0.2.12/514
samplicator-snmptrap:
image: elastiflow/samplicator:1.0.1_1.3.8rc1
container_name: samplicator-snmptrap
restart: unless-stopped
network_mode: host
command: -s 0.0.0.0 -p 162 -S -d 0 192.0.2.11/162 192.0.2.12/162