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!

R7800 Router Level Ad-Blocking On Voxel 72SF

Discussion in 'NETGEAR AC Wireless' started by Tom Brough, Nov 9, 2019.

  1. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    Whilst I used to run ad-blocking on older voxel firmwares I can't seem to get it to function on the new firmwares, despite following the same @kamoj Guide, it always ends up telling me that DNScrypt isn't running but is enabled, and my internet connection doesn't work... I assume there's been a change in DNScrypt layout so does anyone know an up-to-date guide for ad-blocking on the newer firmware versions??
     
    kamoj likes this.
  2. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
  3. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    403
    Please check log-file:
    Code:
    cat /var/log/dnscrypt-proxy-2.log
     
  4. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    Photo above shows that... Fatal error, can't find blacklist.txt even though the other picture shows it downloading it... I copy and pasted your guide and it used to work on firmware 67 but doing the same steps kills 72 install....
     
  5. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    Would a pi-hole server be a better option??
     
  6. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    403
    I'll have another look at it today, to check that my add-on is still working...

    Run this to see if dnscrypt2 will restart:
    Code:
    touch /etc/blacklist.txt
    /etc/init.d/dnscrypt-proxy-2 stop
    /etc/init.d/dnscrypt-proxy-2 start
    tail /var/log/dnscrypt-proxy-2.log
    Also please run this when you have the problem:
    Code:
    find / -type f -name blacklist.txt -exec ls -al {} 2>/dev/null \;
     
  7. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    I will try that later when I'm home... I've already tried the stop start code before, it's also in a picture above but it didn't work.

    But like I said I'll try all the code in one hit and see what it does.
     
  8. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    @kamoj

    Reinstalled the ad blocking set up, copy and pasted your code to rule out typos... Still doesn't work and kills the internet connection completely.

    Log error is as before in one of the pictures I posted, fatal error with regarding the blacklist.

    Running that next batch of code still doesn't fix the internet connectivity, DNS crypt still reports as not running but enabled and I can't access the internet.

    /etc/init.d/dnscrypt-proxy-2 stop

    Gets the internet working again, but starting dnscrypt kills it, so currently it's stopped.

    The screenshot attached shows the result of these lines of code, I've tried rebooting etc but the only way I can get internet access now is to leave DNS crypt off, so something has changed in these newer updates.
     

    Attached Files:

  9. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    403
    I'm sorry for your problem.
    Is there a special reason to why you don't follow my advice, and give proper command and output?

    When internet is "killed" can you use ping to ip-address, eg ping 8.8.8.8 or not?
    If so internet is not dead. If that work and: ping google.com is not working you have a dns problem.

    I think you should start by restoring the original .toml file:
    Code:
    \cp -p /rom/etc/dnscrypt-proxy-2.toml   /etc/dnscrypt-proxy-2.toml
    PS
    I'm running 2.0.28 that came with Voxel 72SF. It's working for me, as did 70SF.
    I have not tried my old advice for blacklist, since I'm testing out my add-on - that is working fine if I don't forget the "touch"...
    Have a nice weekend!

     
  10. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    Sorry @kamoj I don't really know what you mean, I'm not good at this kind of stuff, which is why I'm waiting for your add on, so it's a box ticking job to set up.

    I restarted DNScrypt and lost internet again, I tried ping 8.8.8.8 and it works, I tried ping google.com and it works but using the internet via chrome or apps etc doesn't load.

    To get internet activity again I have to stop dnscrypt via telnet.

    I've just tried restoring the .toml file and now started dnscrypt and it's working again.

    So something in the ad-blocking set up breaks dnscrypt from working. I think my dnscrypt is .31 but I'm now factory resetting and reinstalling .72 so I will try again, and post the results.
     
    Last edited: Nov 9, 2019
  11. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    This command returns me...

    [2019-11-09 16:37:45] [NOTICE] Source [public-resolvers.md] loaded
    [2019-11-09 16:37:45] [NOTICE] Firefox workaround initialized
    [2019-11-09 16:37:45] [NOTICE] Loading the set of blocking rules from [blacklist.txt]
    [2019-11-09 16:37:45] [FATAL] open blacklist.txt: no such file or directory
    [2019-11-09 16:39:26] [NOTICE] dnscrypt-proxy 2.0.31
    [2019-11-09 16:39:26] [NOTICE] Network connectivity detected
    [2019-11-09 16:39:26] [NOTICE] Source [public-resolvers.md] loaded
    [2019-11-09 16:39:26] [NOTICE] Firefox workaround initialized
    [2019-11-09 16:39:26] [NOTICE] Loading the set of blocking rules from [blacklist.txt]
    [2019-11-09 16:39:26] [FATAL] open blacklist.txt: no such file or directory
     
  12. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    This command gives me this...

    [email protected]:/$ find / -type f -name blacklist.txt
    /etc/blacklist.txt
    /overlay/etc/blacklist.txt
    find: /proc/7316: No such file or directory
    find: /proc/7319: No such file or directory
    find: /proc/7322: No such file or directory
    find: /proc/7325: No such file or directory
    find: /proc/7333: No such file or directory
    find: /proc/7356: No such file or directory
    find: /proc/7359: No such file or directory
    find: /proc/7362: No such file or directory
    find: /proc/7365: No such file or directory
    find: /proc/7368: No such file or directory find: /proc/7371: No such file or directory
    find: /proc/7374: No such file or directory
    find: /proc/7377: No such file or directory
    find: /proc/7380: No such file or directory
     
  13. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    Internet connectivity is lost and the dnscrypt info on the debug menu says

    DNSCrypt v2 is not running, but is enabled
     
  14. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    403
    Can you please read again and issue the whole command I suggested?
    (I mean, if you ask for help or advice, you should follow those given to you.)
    Code:
    find / -type f -name blacklist.txt -exec ls -al {} 2>/dev/null \;
    Also very helpful if you issue these commands and try again:
    Code:
    touch /etc/ip-blacklist.txt
    grep -E "blacklist_file|blacklist.txt" /etc/dnscrypt-proxy-2.toml
    hexdump -C /etc/blacklist.txt | grep -Ec "0d  0a|0d 0a"
    
    PS
    Never give up! :)

     
  15. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    The quote hides some of the command so I didn't see it, but running it gives this reply.

    [email protected]:/$ find / -type f -name blacklist.txt -exec ls -al {} 2>/dev/null \;
    -rw-r--r-- 1 root root 242535 Nov 9 17:08 /etc/blacklist.txt
    -rw-r--r-- 1 root root 242535 Nov 9 17:08 /overlay/etc/blacklist.txt
     
    kamoj likes this.
  16. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    This doesn't seem to do much??

    [email protected]:/$ touch /etc/ip-blacklist.txt
    [email protected]:/$ grep -E "blacklist_file|blacklist.txt" /etc/dnscrypt-proxy-2.toml
    blacklist_file = 'blacklist.txt'
    # blacklist_file = 'ip-blacklist.txt'
    [email protected]:/$ hexdump -C /etc/blacklist.txt | grep -Ec "0d 0a|0d 0a"
    0
    [email protected]:/$

    Internet still doesn't work and dnscrypt says not running but enabled.
     
    kamoj likes this.
  17. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    @kamoj

    Forgot to say thanks for all this time and effort.
     
    kamoj likes this.
  18. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    Did you get the chance to try yesterday @kamoj
     
  19. kamoj

    kamoj Senior Member

    Joined:
    May 12, 2017
    Messages:
    403
  20. Tom Brough

    Tom Brough Regular Contributor

    Joined:
    Dec 21, 2018
    Messages:
    51
    kamoj likes this.