diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-08-24 13:31:38 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-08-24 13:31:38 +0100 |
commit | 7d113fcddd341f1e4b04ceb2785087d50b8e1556 (patch) | |
tree | a8f8e8c288c13badf9eb061bbc67c899916bc6a3 /misc/dotfiles/wireguard/onion-dns-down.sh | |
parent | 461b380f51b6aca3113f581378846e4902bea6fe (diff) | |
download | infra-master.tar.gz infra-master.tar.bz2 infra-master.zip |
This is a simple role that works only for one host. There are multiple
complications that I should keep in mind in the future.
* There is should be a way to install dotfiles on boxes without GPG key
there. So, files with secrets in them should be gated.
* Wireguard configuration should be per host. Each host should have it
is own private key.
Diffstat (limited to 'misc/dotfiles/wireguard/onion-dns-down.sh')
-rwxr-xr-x | misc/dotfiles/wireguard/onion-dns-down.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/dotfiles/wireguard/onion-dns-down.sh b/misc/dotfiles/wireguard/onion-dns-down.sh new file mode 100755 index 0000000..b271700 --- /dev/null +++ b/misc/dotfiles/wireguard/onion-dns-down.sh @@ -0,0 +1,7 @@ +#! /usr/bin/env sh + +iface=$1 + +/usr/sbin/scutil <<EOF +remove State:/Network/Service/$iface/DNS +EOF |