2020-07-06 02:01:01 +02:00
|
|
|
environment: test
|
|
|
|
|
|
|
|
connectors:
|
|
|
|
- file: connectorTest
|
|
|
|
name: tes
|
|
|
|
params:
|
|
|
|
testType: withdrawal
|
|
|
|
|
|
|
|
monitors:
|
|
|
|
- file: monitorHijack
|
|
|
|
channel: hijack
|
|
|
|
name: basic-hijack-detection
|
|
|
|
params:
|
|
|
|
thresholdMinPeers: 0
|
|
|
|
|
|
|
|
- file: monitorNewPrefix
|
|
|
|
channel: newprefix
|
|
|
|
name: prefix-detection
|
|
|
|
params:
|
|
|
|
thresholdMinPeers: 0
|
|
|
|
|
|
|
|
- file: monitorVisibility
|
|
|
|
channel: visibility
|
|
|
|
name: withdrawal-detection
|
|
|
|
params:
|
|
|
|
thresholdMinPeers: 4
|
|
|
|
|
|
|
|
- file: monitorPath
|
|
|
|
channel: path
|
|
|
|
name: path-matching
|
|
|
|
params:
|
|
|
|
thresholdMinPeers: 0
|
|
|
|
|
|
|
|
- file: monitorAS
|
|
|
|
channel: misconfiguration
|
|
|
|
name: asn-monitor
|
|
|
|
params:
|
|
|
|
thresholdMinPeers: 2
|
|
|
|
|
2020-11-06 18:12:06 +01:00
|
|
|
# - file: monitorRPKI
|
|
|
|
# channel: rpki
|
|
|
|
# name: rpki-monitor
|
|
|
|
# params:
|
|
|
|
# thresholdMinPeers: 1
|
|
|
|
# checkUncovered: true
|
2020-07-06 02:01:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
reports:
|
|
|
|
- file: reportSyslog
|
|
|
|
channels:
|
|
|
|
- hijack
|
|
|
|
- newprefix
|
|
|
|
- visibility
|
|
|
|
- path
|
|
|
|
- asn-monitor
|
|
|
|
- misconfiguration
|
|
|
|
- rpki
|
|
|
|
params:
|
|
|
|
host: 127.0.0.1
|
2020-07-06 02:04:19 +02:00
|
|
|
port: 1516
|
2020-07-06 02:01:01 +02:00
|
|
|
transport: udp
|
2021-06-11 15:16:58 +02:00
|
|
|
templates: # See here how to write a template https://github.com/nttgin/BGPalerter/blob/main/docs/context.md
|
2020-07-06 02:01:01 +02:00
|
|
|
default: "++BGPalerter-3-${type}: ${summary}|${earliest}|${latest}"
|
|
|
|
hijack: "++BGPalerter-5-${type}: ${summary}|${prefix}|${description}|${asn}|${newprefix}|${neworigin}|${earliest}|${latest}|${peers}"
|
|
|
|
newprefix: "++BGPalerter-4-${type}: ${summary}|${prefix}|${description}|${asn}|${newprefix}|${neworigin}|${earliest}|${latest}|${peers}"
|
|
|
|
visibility: "++BGPalerter-5-${type}: ${summary}|${prefix}|${description}|${asn}|${earliest}|${latest}|${peers}"
|
|
|
|
misconfiguration: "++BGPalerter-3-${type}: ${summary}|${asn}|${prefix}|${earliest}|${latest}"
|
|
|
|
|
2020-07-23 20:56:25 +02:00
|
|
|
- file: reportHTTP
|
|
|
|
channels:
|
|
|
|
- hijack
|
|
|
|
- newprefix
|
|
|
|
- visibility
|
|
|
|
- path
|
|
|
|
- misconfiguration
|
|
|
|
- rpki
|
|
|
|
params:
|
2021-06-11 15:16:58 +02:00
|
|
|
templates: # See here how to write a template https://github.com/nttgin/BGPalerter/blob/main/docs/context.md
|
2020-07-23 20:56:25 +02:00
|
|
|
default: '{"text": "${summary}"}'
|
|
|
|
headers:
|
|
|
|
isTemplateJSON: true
|
|
|
|
showPaths: 5 # Amount of AS_PATHs to report in the alert
|
|
|
|
hooks:
|
|
|
|
default: http://localhost:8090/test
|
2020-07-06 02:01:01 +02:00
|
|
|
|
|
|
|
# The file containing the monitored prefixes. Please see monitored_prefixes_test.yml for an example
|
|
|
|
# This is an array (use new lines and dashes!)
|
|
|
|
monitoredPrefixesFiles:
|
|
|
|
- tests/prefixes.test.yml
|
|
|
|
|
|
|
|
logging:
|
|
|
|
directory: logs
|
|
|
|
logRotatePattern: YYYY-MM-DD # Whenever the pattern changes, a new file is created and the old one rotated
|
|
|
|
maxRetainedFiles: 10
|
|
|
|
maxFileSizeMB: 15
|
|
|
|
compressOnRotation: true
|
|
|
|
|
|
|
|
checkForUpdatesAtBoot: false
|
|
|
|
persistStatus: false
|
|
|
|
|
|
|
|
|
|
|
|
notificationIntervalSeconds: 1800 # Repeat the same alert (which keeps being triggered) after x seconds
|
|
|
|
alertOnlyOnce: false
|
|
|
|
fadeOffSeconds: 10
|
|
|
|
checkFadeOffGroupsSeconds: 2
|
|
|
|
pidFile: bgpalerter.pid
|
|
|
|
multiProcess: false
|
|
|
|
maxMessagesPerSecond: 6000
|