Installing Wireguard, Pihole and using it over ssh/onion
curl -sSL https://install.pi-hole.net | bash #install pihole on the internal nat server and put the ip on the others for dns
apt install wireguard
mkdir /tmp/keys
cd /tmp/keys
wg genkey | tee privatekey | wg pubkey > publickey
ein paar beispiel configs:
https://gist.github.com/gabriel-v/d2d5f6ab60dd59a5cde83459556b79f9
https://drexl.me/guides/wireguard-pihole-vpn-setup.html
https://jamesledger.net/securing-ssh-with-a-jump-host/
https://www.smarthomebeginner.com/linux-wireguard-vpn-server-setup/
https://www.procustodibus.com/blog/2021/05/wireguard-ufw/
reverse_proxy: https://blog.fuzzymistborn.com/vps-reverse-proxy-tunnel/
ssh config tricks:
https://linuxize.com/post/using-the-ssh-config-file/
für die .ssh/config
hosts: all
pre_tasks:
– command: wg-quick up {{ site }}.conf
delegate_to: localhost
run_once: yes
post_tasks:
– command: wg-quick down {{ site }}.conf
delegate_to: localhost
run_once: yes
tasks:
Leave a Reply