Adguard - DNS Amplification Issues - HELP ( SOS )
deepak_leb
OG
Dear Les-bians,
Greeting, Hope Everyone is safe and sound in good shape.
\
Well, Recently I installed a Adguard + Wireguard on a VPS Server. To my suprise am getting New Spam Clients from China and Some other Countries.
Especaillay pizzaseo .com& other clients.
So, kindly say how to stop these, and let me get to know that what i have messed up.
Comments
@Freek may be able to help?
How it works?
Email address get from whois domain?
Not Spam emails but Spam clients.
Client(s) who got the IP Address of new DNS server and started using it for DDoS.
Have you tried turning it off and on again?Disable DNS over UDP.
Enable DNS over TLS.
No amplification attack possible.
We accept Karma donations for the last flan. ๐ฎ affbrr
You mean AdGuard home right? The below works if you are only using AdGuard home to serve your VPS and WireGuard clients.
Under Settings | DNS settings, scroll down to the Access Control fields at the bottom. Under allowed clients, enter in ip ranges to whitelist. For example, I have whitelisted my VPS and wireguard clients in the 10.9.0.0/24 range.
127.0.0.110.9.0.0/24@Freek is the DNS Master
Acl local private ip only
Could you elaborate & PM me ?
Need some detailed description, since am not much into these things
Will contact him
Thank you. Will get back to him
Let me check on to it & pm you
Thanks for the mention
This will indeed fix your problems, @deepak_leb .But if you absolutely must DNS over UDP, you can try the following:
refuse_any: trueBut I do wonder; is AdGuard listening on the correct interface? Since it shouldn't be listening on your public IP if you use WireGuard to connect...
LinuxFreek.com โ Thank you for your attention to this matter
Yes you might be 100% correct as probably in listening interface all interfaces were selected instead of only wireguard interface . Saw the same issue when i did this exact mistake . Once Wireguard interface is selected their are no unknown clients
I only selected eth0 Wireguard interface alone
eth0 should be the NIC and wg0 as wireguard interface or whatever name was given for listening interface
Any guides pls
No guide required . Just select wg0 in listen interface when you setup Adguard
Add the domain in disallowed domains and limit the rate limit for example 3 per second
Action and Reaction in history
But I couldnt get the wg0. On interfaces, am getting only eth0 and l0 interfaces
Whats is your wireguard interface ? Select that interface on Adguard setup page , listen interface
Will pm u
ok .
Or maybe you can stop setting up your own DNS server and use 94.140.14.14 / 94.140.15.15 instead
Everything has been sorted out. Thank all for your time ๐
Write a tutorial for LES blog
.
Have you tried turning it off and on again?Please share how you solved your issue. Like I told you via PM; a forum is to share knowledge, not to keep it secret in private messages.
LinuxFreek.com โ Thank you for your attention to this matter
๐ฅบ Nothing special, Before Installating the wireguard, I simply installed the Adguard, that's in DNS Interface I haven't got the wireguard WgO interface.
Besides I followed the NAT Vps Guide blindly though I don't use that NAT VPS
So I guess OP replicated the setup I use.
1) have the adguard/pihole/ANY_dnsserver listen exclusively on wg0 (wireguard nic)
2) use wireguard tunnel for all internet traffic and the private wg0 ip for dns-nameserver value .
The dns bots will move on.
Yep
Am I reading this right that you can set up wireguard to filter all DNS queries from adguardhome? I know you can use wireguard to browse and whatever using adguard recursively with argo tunnel. If it is possible to point adguard at a wiregaurd network, I would love to know how. Many thanks!
your config file will looks like this
this way, as long as wireguard is connected, it'll tell the connection to send dns request to 10.7.0.1, or where your adguard installation at
Fuck this 24/7 internet spew of trivia and celebrity bullshit.
speaking of amplification this just hapens to me recently
surprised this doesn't mentioned in first page
https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration
Fuck this 24/7 internet spew of trivia and celebrity bullshit.
Perfect! I already had wireguard installed and I checked that it is indeed with the script from Nyr. So it looks like a simple matter of changing the config file to the proper dns IP. And I guess making wireguard run as a service?
Also I have it set up recursive, so adguard is pointing to 127.0.0.1 currently.
127.0.0.1:5335 127.0.0.1:5053 127.0.0.1:8053The wg0.conf interface address is already 10.7.0.1/24. So I also add the interface DNS address as 10.7.0.1? Here is my current config. I may need to redo. Just let me know.
`# Do not alter the commented lines
They are used by wireguard-install
ENDPOINT - WAN-IP
[Interface]
Address = 10.7.0.1/24
PrivateKey = Private Key
ListenPort = Port
BEGIN_PEER
[Peer]
PublicKey = Public Key
PresharedKey = Preshared Key
AllowedIPs = 10.7.0.2/32
END_PEER`
Lastly - Would using cloudflared with this hinder/help? I have a guide that I used to get recursive DNS going with adguardhome/unbound/stubby with cloudflared. The wireguard install was also part of the guide, but did not (to my knowledge) include having queries sent through it.
ran out of time to edit and fix the large font - apologies
iirc by using the install script, your wireguard server is run as service by default
yeah like that. inside AdGuardHome.yaml you'll see the bind_host config, make sure your 10.7.0.1 is at there so AdGuard will also listen into DNS traffic at there
You don't change the wireguard server config at all. in fact, don't change it lol. what you need to modify is the installer script itself
In this line wireguard-install.sh#L102
Change that to "AdGuard Self-Host" or something
then in this line wireguard-install.sh#L134
change
dns="94.140.14.14, 94.140.15.15"to
dns="10.7.0.1"so the next time you re-run to add the new client, you'll automatically get DNS with 10.7.0.1 by using option 6 that you just modify
Fuck this 24/7 internet spew of trivia and celebrity bullshit.
awesome. I will do that asap!
in your opinion, would using cloudflared with this hinder/help? I have a guide that I used to get recursive DNS going with adguardhome/unbound/stubby with cloudflared. The wireguard install was also part of the guide, but did not (to my knowledge) include having queries sent through it.
Just want to know if I need to nix the CF tunnel since I will basically be using... a tunnel lol
cloudflared probably only useful to manage the web access. IIRC from the documentation cloudflare only proxy traffic that comes to port 80 or 443, never heard / read documentation about it where they also accept DNS/port53 traffic
Fuck this 24/7 internet spew of trivia and celebrity bullshit.
Ok, thanks. I have removed the tunnel for now and will try the wireguard option again. It did not work last try.