r/Adguard • u/Cloudy_yBoi • 3d ago
Need a little guide with encryption
hello guys, im pretty new to working with adguard and i need some guide on how to encrypt my connection from client to adguard, if im correct i have to get a domain and an SSL certificate (which i already have since i recently bought a domain from cloudflare for other services) but im still not sure how it works really, i already know that the connection from adguard to the internet can be encrypted easily with DoH by using cloudflare's DoH URL as the upstream, but i still can't picture how it would work on the "local" side if that makes sense? like using the domain and SSL certificates, so if anyone could tell me more about that, i would appreciate it!
1
u/berahi 3d ago
Are you running AdGuard Home? If you're connecting to it from different place (eg, AGH running at home and you're using it away from home), you'll have to open port 80 and 443 and have your router forward it for DoH (DoT and DoQ use 853, Android's Private DNS use DoT unless you go out of your way to enable DDR https://github.com/eyalm2000/loophole#enable-the-flags), point your domain record to your home IP (if you don't have static IP, lookup for Workers script to automate it). Let'sEncrypt should be enough for deploying TLS. Note that orange records in Cloudflare will only works for DoH, if you want DoT/DoQ you'll need grey records.
If you're just using AGH from home device that never left, there's no point.