Skip to content

Fast setup wireguard server script, with dnscrypt and adblocking, maleware blocking, more blocking if you need. Use case eg. always on vpn and adblocking on ios or android, and be more secured in unknown networks.

License

Notifications You must be signed in to change notification settings

zzzkeil/Wireguard-DNScrypt-VPN-Server

Repository files navigation

VPN-Server Wireguard DNScrypt AD-Block - Pi-Hole optional

Debian Ubuntu

https://hetzner.cloud/?ref=iP0i3O1wRcHu

Version 2025.08.04

major changes :

  • Debian and Ubuntu only for the future, to much work for the others, less time ....
  • Pi-Hole as option
  • Nextcloud as option
  • add and remove of clients now with "checks"
  • only one client after install, so you can add and name yours

**Setup Wireguard VPN Server fast and easy - with **

  • on X86_64 or ARM64 systems
  • DNScrypt with anonymized_dns / DNSSEC
  • Ad-, Maleware-, Threat Intelligence Feeds, ..., blocking
  • add or remove clients with add_client.sh / remove_client.sh
  • backup, restore and unistall options

How to install Debian 13 and Ubuntu 24.04 (optional: nextcloud):

Server x86_64 and ARM64 -
Pi-Hole or Nextcloud can only accessed with wireguard, it´s not puplic available. hope so .... ;)

With Pi-Hole and DNScrypt :

wget -O  setup_wg_adblock.sh https://raw.githubusercontent.com/zzzkeil/Wireguard-DNScrypt-VPN-Server/refs/heads/master/pihole_dnscrypt_debian13_ubuntu24.sh
chmod +x setup_wg_adblock.sh
./setup_wg_adblock.sh

DNScrypt with adblock only :

wget -O  setup_wg_adblock.sh https://raw.githubusercontent.com/zzzkeil/Wireguard-DNScrypt-VPN-Server/refs/heads/master/dnscrypt_adblock_debian13_ubuntu24.04.sh
chmod +x setup_wg_adblock.sh
./setup_wg_adblock.sh
  • Copy the lines above, execute and follow the instructions
  • Use a fresh / clean server os > Debian 13 or Ubuntu 24.04:
  • My script base_setup.sh need to installed -> repository
    • if not installed, base_setup.sh will downloaded for you, just follow the instructions.
  • Optional: Nextcloud can be installed afterwards

@ the end you see the QR Code for your wiregaurd app.

How to add or remove clients :

run ./add_client.sh or ./remove_client.sh

How to backup or restore settings :

run ./wg_config_backup.sh or ./wg_config_restore.sh

Badge found and used from : github - Ileriayo - mark-down-badges

About

Fast setup wireguard server script, with dnscrypt and adblocking, maleware blocking, more blocking if you need. Use case eg. always on vpn and adblocking on ios or android, and be more secured in unknown networks.

Topics

Resources

License

Stars

Watchers

Forks

Languages