1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Is it possible to manipulate dnsfilter via SSH?

Discussion in 'Asuswrt-Merlin' started by jnsie, Dec 11, 2019.

  1. jnsie

    jnsie New Around Here

    Joined:
    May 13, 2019
    Messages:
    6
    I'm able to manipulate dnsfilters via the user interface, but would like to change the filter mode for particular clients via SSH. Can anyone provide any pointers?
     
  2. dave14305

    dave14305 Very Senior Member

    Joined:
    May 19, 2018
    Messages:
    1,821
    Location:
    USA
    It’s a bad idea in practice because the format of the nvram variable is not straightforward to manipulate.
    Code:
    nvram get dnsfilter_rulelist
    If you already have client rules defined and the results don’t scare you, they should. :eek:

    Or wait for someone smarter to wander by. :)
     
    jnsie and Butterfly Bones like this.
  3. jnsie

    jnsie New Around Here

    Joined:
    May 13, 2019
    Messages:
    6
    Thanks, mate. You're the someone smarter here :)
     
    L&LD and dave14305 like this.