What's new

How do I get x3mrouting working with AdGuard Home ?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How do I get x3mrouting to work with AdGuard home since it bypasses dnsmasq?
I'm not sure how well the x3mrouting script works with the new firmware/routers since it hasn't been updated in quite awhile. Maybe someone else can assist with this request though.
 
How do I get x3mrouting to work with AdGuard home since it bypasses dnsmasq?
X3mrouting are using ipsets which it puts in dnsmasq.conf.add to have dnsmasq populate the set.

You can add the same domain and ipsets to AGH:
Code:
nano /opt/etc/AdGuardHome/AdGuardHome.yaml

Scroll down to ipset section and add your ipsets, I.e:
Code:
ipset:
 - netflix.com,netflix.net,nflxext.com,nflximg.com,nflximg.net,nflxso.net,nflxvideo.net,amazonaws.com/NETFLIX-DNS,NETFLIX-DNS6

change the top-domains to the ones you intend and change the ipset name to your names. Remove the ipv6 name if you dont use it. After you done, save & exit then restart AdGuardHome. Check the logs so AdGuardHome started ok.

source: https://github.com/ZebMcKayhan/WireguardManager?tab=readme-ov-file#create-and-setup-ipsets
 
Ok can I use x3mrouting to create the ipset x3mRouting ipset_name=NETFLIX I get the error that I don't have the file in opt/tmp --- I can create it with this sh /jffs/scripts/x3mRouting/x3mRouting.sh 1 0 Netflix dnsmasq=netflix.com,netflix.net,nflxext.com,nflximg.com,nflximg.net,nflxso.net,nflxvideo.net,amazonaws.com but then aren't I not supposed to be doing it that way because its not using dnsmasq ??
 
& one other thing how would I add multiples to the adguard yaml not just netflix?:::
ipset:
- netflix.com,netflix.net,nflxext.com,nflximg.com,nflximg.net,nflxso.net,nflxvideo.net,amazonaws.com/NETFLIX-DNS,NETFLIX-DNS6
 
Ok can I use x3mrouting to create the ipset x3mRouting ipset_name=NETFLIX I get the error that I don't have the file in opt/tmp --- I can create it with this sh /jffs/scripts/x3mRouting/x3mRouting.sh 1 0 Netflix dnsmasq=netflix.com,netflix.net,nflxext.com,nflximg.com,nflximg.net,nflxso.net,nflxvideo.net,amazonaws.com but then aren't I not supposed to be doing it that way because its not using dnsmasq ??
Sure, it will set everything up for you. It will create the ipsets, setup to restore the ipsets at boot, firewall rules for marking packets and routing rules. So lots of things are made, it does not matter for you if it adds the set to dnsmasq since it won't be populating it.


I guess to clarify what is the best way to actually create the ipset ?
You can create it yourself if you wish, just follow the link I posted. But the ipset itself will not be enough, you also need firewall rules and routing rules. Using x3mrouting is very convenient and not bad in any way.
You will just need to add the domains and ipset to AGH so it will be populated.


one other thing how would I add multiples to the adguard yaml not just netflix?:::
One line per ipset, I'm guessing you can add as many lines as you wish.
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top