Scripts to confgire a group of hosts on a LAN to use VXLAN over Wireguard.
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
# ansible-playbook -D testxmlemptytag.yml | |
PLAY [localhost] ************************************************************************************************************************************************************ | |
TASK [Gathering Facts] ****************************************************************************************************************************************************** | |
ok: [127.0.0.1] | |
TASK [ansible.builtin.copy] ************************************************************************************************************************************************* | |
changed: [127.0.0.1] |
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
#!/bin/sh | |
# based on https://github.com/OpenVPN/openvpn/blob/master/contrib/OCSP_check/OCSP_check.sh | |
# for testing ocsp support in openvpn @ opnsense | |
# OCSP responder URL (mandatory) | |
# you can extract this from the cert ... | |
ocsp_url=`openssl x509 -in /var/etc/openvpn/server${1}.ca -noout -ocsp_uri` | |
# CA CERTIFICATE |
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
# Any configuration directives you include here will override | |
# RT's default configuration file, RT_Config.pm | |
# | |
# To include a directive here, just copy the equivalent statement | |
# from RT_Config.pm and change the value. We've included a single | |
# sample value below. | |
# | |
# This file is actually a perl module, so you can include valid | |
# perl code, as well. | |
# |
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
#!/bin/bash | |
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 smartindent nu ft=bash | |
declare -i RET=0 | |
STATUS="OK" | |
O=$(REDISCLI_AUTH="$(sed '/^masterauth/!d;s/.* //g' /etc/redis/redis.conf)" redis-cli ping 2>&1) | |
RET=$? | |
if [ $RET -gt 0 ]; then | |
RET=2 | |
STATUS="CRITICAL" |
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
#! /bin/bash | |
# complementing https://github.com/zerwes/opnsense-fail2ban | |
# script will check all banned IPs listed in a list of fail2ban jails | |
# and compare them against a opnsense alias, | |
# removing the elements that are not in the ban list from fail2ban | |
# | |
# this will ensure that banned IPs that for what reaseon ever are left | |
# in the opnsense alias are cleaned up (avoiding neverending bans) |
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
--- | |
# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 smartindent nu ft=yaml | |
# run a upgrade and optional | |
# check later if the expected version of a desired package is installed | |
# run needrestart | |
# | |
# example: ansible-playbook -e run_versioncheck=true -e apt_upgrade=full aptupgrade.yml | |
- name: run apt upgrade |
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
# shortform git commands | |
alias g='git' | |
# push changes to an empty git repository for the first time | |
git push --set-upstream origin master | |
# Remove + and - from start of diff lines | |
git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r | |
# clear out git hooks |
NewerOlder