I am having trouble with my install of AdGuard Home on a AWS Debian VPS

iAmSaugata

New Member
I would suggest using Docker for Adguard Home to get less complication and not to corrupt host OS, I am doing it in my Azure VM.
You need following.
After setting up VPS (preferably AWS Lightsail), install Docker on top of it, then add Portainer to manage docker in GUI mode and Portainer also support docker-compose. Now you have everything ready. You can use this VPS for multiple services, either you have to use NPM or Cloudflared ZeroTrust Tunnel.
 

Fabio2011

New Member
I would suggest using Docker for Adguard Home to get less complication and not to corrupt host OS, I am doing it in my Azure VM.
You need following.
After setting up VPS (preferably AWS Lightsail), install Docker on top of it, then add Portainer to manage docker in GUI mode and Portainer also support docker-compose. Now you have everything ready. You can use this VPS for multiple services, either you have to use NPM or Cloudflared ZeroTrust Tunnel.
Have you managed to make it work using this method?

I have deployed an Ubuntu VM on Azure and installed Docker with Portainer, deployed successfully AdGuard using Portainer but I am facing issues with the IPs, meaning that when I put manually the IP address of the VM on my ethernet settings and try visiting a website, it fails due to the DNS resolver.

I cannot find what I am missing right here, do I have to make any changes on the VM within Azure on the public IP?
 

iAmSaugata

New Member
I am running my secondary setup in Azure with exact same configuration. Here are the details.
Azure RG
AzureDocker.png

NSG
NSG.png

CloudFlare Tunnel
cft.png

Portainer

ptnr.png

Hope this will help you.

Regards,
Saugata D.
 

Fabio2011

New Member
Thanks for the screenshots Saugata!

Could you tell me what is the role of CloudFlare in your environment?

This is the only part which is missing from my environment.

Moreover, could you take a screenshot with the opened ports for the AdGuard container, as I still think that's where I am missing something. Currently, the following ones are opened for me:

1674461756549.png

And this is what I am getting when trying to access a website after entering manually the IP address of the server in my ethernet settings:

1674461856176.png
 

iAmSaugata

New Member
Hi,
I am using this for DOH/DOT/DOQ, all of them are working as expected. I am using following stack in portainer to deploy Adguard Home.

Also, I am using CloudFlare Argo Tunnel as reverse proxy as well as CloudFlare Access.


Code:
#Name: adguardhome
version: '3.5'
services:
  adguardhome:
    image: adguard/adguardhome:latest
    container_name: adguardhome
    hostname: adguardhome
    volumes:
      - '/home/azureuser/adguard/wdir:/opt/adguardhome/work'
      - '/home/azureuser/adguard/cdir:/opt/adguardhome/conf'
      # This for NGING Reverse Proxy SSL Certificate for Encryption
      # - '/home/pi/nginx/letsencrypt/archive/npm-xx:/opt/adguardhome/cert:ro'
      # Time Zone Sync
      - '/etc/timezone:/etc/timezone:ro'
      - '/etc/localtime:/etc/localtime:ro'
    ports:
      - "443:443/tcp"
      - "443:443/udp"
      - "853:853/tcp"
      - "853:853/udp"
    restart: always
    #network_mode: "host"
    networks:
      backend:
        ipv4_address: '172.33.0.100'
networks:
  backend:
    ipam:
      config:
        - subnet: 172.33.0.0/16
    driver_opts:
      com.docker.network.bridge.name: br_ag_dns
I have following ports configured in docker.
1674588514145.png

Azure NSG
1674589224048.png

Sample rule.
1674588787518.png

DOT/DOH and DOQ, all of them are working fine.

1674588992581.png

I hope this will help.

Saugata D.
 
Last edited:
Top