What's new
  • 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!

dnsmasq config files constrained to Yazfi interface?

WhatHappenedToMyRouter

New Around Here
Hello!

I'm trying to apply separate dnsmasq .conf files to specific wireless interfaces (as seen in YazFi)

I've exhausted gemini, chatgpt, and grok with this. They all are like "OK THIS IS THE 100% working script!" 20x in a row, but everything they ask me to try hasn't worked.

They all continue to ask me to try things that don't work, even after explaining that they don't work, so I supposed it's hallucinating like crazy.


In my /jffs/configs/dnsmasq.conf.add file I have this declaration: conf-dir=/jffs/configs/dnsmasq.d,*.conf

I have a /jffs/configs/dnsmasq.conf.d/global.conf which is applied, and works great. It redirects major search engines to their "safe" IP and blocks other things.

I have another file /jffs/configs/dnsmasq.conf.d/spacewifi.conf which is intended for a Yazfi network. I've found that the interface for this wifi network in /jffs/addons/YazFi.d/config and it's wl1.2

So in my spacewifi.conf, the lines are a collection of blocks:
address=/facebook.com/0.0.0.0

However, I can't get it to just apply to the specific subnet that spacewifi is on (192.168.6.0/24) no matter what combination of interface, dhcp-range, dhcp-option that I try :-(

Has anyone successfully gotten dnsmasq to work with a specific subnet or with a Yazfi interface?
 
@WhatHappenedToMyRouter, what are you trying to achieve by using custom configuration files with YazFi? Block specific websites? Set manual IP reservations for YazFi Guest clients? Something else?

If you haven't seen the Asus-Merlin wiki's entry on custom config files you might want to review it.

Please don't use AI like gemini, chatgpt, and grok to generate code for Asus-Merlin. As you discovered, its terrible at it. Instead, if you haven't done so already, use the search feature of this site and search the subforum(s). There are numerous posts showing example coding for custom config files on Asus-Merlin.

PS: It will likely add context if you include your router model and specific Asus-Merlin firmware it is running along with any additional addon scripts you have installed.
 

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!
Back
Top