Files

Source: https://github.com/wg-easy/wg-easy

Change your DNS to your internal DNS server(like pihole) if needed
Add your public IP or if you have DDNS use that subdomain

If wanting wg-easy to access other docker containers and resolve DNS/use internal DNS server (like a pihole in a docker container), then I recommend a small Dietpi VM.

Steps or link to setting up Dietpi:

Configure Dietpi:

  1. SSH key pair https://dietpi.com/docs/software/ssh/#dropbear-restrict-root-logins

/boot/dietpi/func/dietpi-set_software disable_ssh_password_logins root

  1. Firewall sudo apt install ufw sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw allow from 192.168.45.0/24 to any port 22 proto tcp sudo ufw enable

  2. Unattended security updates sudo apt install unattended-upgrades apt-listchanges sudo dpkg-reconfigure --priority=low unattended-upgrades

sudo sed -i 's|//Unattended-Upgrade::Automatic-Reboot "false";|Unattended-Upgrade::Automatic-Reboot "true";|' /etc/apt/apt.conf.d/50unattended-upgrades
sudo sed -i 's|//Unattended-Upgrade::Automatic-Reboot-Time "02:00";|Unattended-Upgrade::Automatic-Reboot-Time "05:00";|' /etc/apt/apt.conf.d/50unattended-upgrades
  1. Time sync timedatectl sudo systemctl enable --now systemd-timesyncd

  2. Fail2ban sudo apt install fail2ban sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local sudo nano /etc/fail2ban/jail.local

  3. install docker sudo dietpi-software install 162

  4. install dockhand sudo mkdir /srv/docker sudo chown -R root:docker /srv/docker sudo chmod -R 755 /srv/docker https://scripts.gabesville.com/Gabesville/Docker-Compose/src/branch/main/Docker_GUI_Managers/dockhand/README.md

  5. run wireguard container

  6. port forward