This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source qrator_radar { | |
network( | |
ip("203.0.113.2") # TODO fill in the external IP | |
transport("udp") | |
); | |
}; | |
destination bgp_alerts { | |
file("/var/log/bgpalerts.log"); # TODO customize the path | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original Source: | |
# https://gist.github.com/ggrandes/a57c401f1bad6bd0ffd87a557b7b5790 | |
# SIGN / VERIFY | |
openssl cms -sign -keyid -md sha256 -nodetach -binary -in /etc/passwd -signer user.crt -inkey user.key -out x.smime -outform SMIME | |
openssl cms -verify -CAfile ca.crt -in x.smime -inform SMIME | |
# ENCRYPT / DECRYPT | |
openssl cms -encrypt -keyid -aes-256-cbc -in /etc/passwd -binary -out x.smime -outform SMIME user.crt | |
openssl cms -decrypt -in x.smime -inform SMIME -recip user.crt -inkey user.key |