/etc/systemd/network/net0_dns0.netdev
[NetDev]
Description=Virtual device for PiHole DNS
Name=dns0
Kind=macvlan
[MACVLAN]
Mode=bridge
/etc/systemd/network/net0_dns0.netdev
[NetDev]
Description=Virtual device for PiHole DNS
Name=dns0
Kind=macvlan
[MACVLAN]
Mode=bridge
https://www.oftc.net/NickServ/CertFP/#AddCertFPtoNS
openssl req -nodes -newkey rsa:4096 -keyout nick.key -x509 -days 3650 -out nick.cer
cat nick.{key,cer} > nick.pemTo avoid some bugs in wg-quick and/or iptables on my Synology:
Credit where credit is due. I got this idea from the Wireguard website. https://www.wireguard.com/netns/#the-new-namespace-solution
| #!/bin/bash | |
| #set -x | |
| function find_latest { | |
| # find latest version | |
| local PROGRAM=$1 | |
| local VERSION=$2 | |
| asdf list all "${PROGRAM}" | \ | |
| sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | \ |
| """safe_shelve.py""" | |
| import os | |
| import shelve | |
| DATA_DIR = 'data' | |
| def open(db_name: str): | |
| """Opens and returns a shelve in an unambiguous place.""" | |
| directory = os.path.join(DATA_DIR, db_name) |
| import attr | |
| import cattr | |
| import json | |
| @attr.s | |
| class FooClass: | |
| x = attr.ib() | |
| y = attr.ib() |
| [Unit] | |
| Description=Keeps a tunnel to 'remote.example.com' open | |
| After=network-online.target | |
| [Service] | |
| User=autossh | |
| # -p [PORT] | |
| # -l [user] | |
| # -M 0 --> no monitoring | |
| # -N Just open the connection and do nothing (not interactive) |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- https://www.launchd.info/ --> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>tunnel.autossh</string> | |
| <key>KeepAlive</key> | |
| <dict> |
| #!/bin/bash | |
| log () { echo "$(date +"%Y-%m-%d %T") " "$@"; } | |
| home_dir='' # FILL THIS OUT | |
| name='remote' | |
| restic_path='/opt/homebrew/bin' # ADJUST AS NEEDED | |
| pid_file="${home_dir}/.restic/${name}.pid" | |
| timestamp_file="${home_dir}/.restic/${name}.timestamp" | |
| hc_ping="https://hc-ping.com/uuid_here" # REPLACE WITH YOUR UUID |