systemd unit files for dnssec-keymgr (bind 9.16). No longer relevant with 9.18, but might still be useful. Archiving it here.
[Unit]
Description=dnssey-keymgr for %i
[Service]
Environment=DNSSEC_POLICY_FILE=/etc/dnssec-policy.conf
| #! /bin/sh | |
| # Help output | |
| help() | |
| { | |
| cat << EOF | |
| Usage: $0 | |
| This script generates two Wireguard key pairs along with a pre-shared key. | |
| This key material can be used to quickly setup a point-to-point tunnel |
systemd unit files for dnssec-keymgr (bind 9.16). No longer relevant with 9.18, but might still be useful. Archiving it here.
[Unit]
Description=dnssey-keymgr for %i
[Service]
Environment=DNSSEC_POLICY_FILE=/etc/dnssec-policy.conf
| #! /usr/bin/env python3 | |
| import argparse | |
| import socket | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('ip') | |
| parser.add_argument('port', type=int) | |
| args = parser.parse_args() |
| #! /usr/bin/env python | |
| # Copyright (c) 2021 Karol Babioch <[email protected]> | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| #! /bin/bash | |
| # Copyright (c) 2021 Karol Babioch <[email protected]> | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| #!/usr/bin/env python3 | |
| # Copyright (c) 2019 Karol Babioch <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| #! /usr/bin/env python3 | |
| # | |
| # Copyright (c) 2019 Karol Babioch <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| #! /usr/bin/env python3 | |
| import argparse | |
| import logging | |
| import re | |
| import subprocess | |
| import sys | |
| # Exit codes | |
| EXIT_OK = 0 |
| # Copyright (c) 2018 Karol Babioch <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| #! /usr/bin/env python | |
| from datetime import datetime, timedelta | |
| from optparse import OptionParser | |
| import sys | |
| import re | |
| # TODO Read log lines backwards | |
| desc="""This is a simple Nagios plugin that will analyze the mail log from |