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!

AB-Solution - The Ad Blocking Solution (v3.9.1)

Discussion in 'Asuswrt-Merlin' started by thelonelycoder, Feb 15, 2017.

  1. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    The addon pixelserv-tls.add v3.9.2 is now available, use cu to update.

    Sets owner of certificate directory to 'nobody', required for pixelserv-tls v35.HZ12.Kk.
    Removes -z switch option to set custom certificate directory, setting this would cause problems, no one ever used that switch anyway.

    To update to the latest pixelserv-tls version use ps option '6. Manage Entware packages' after this addon update.
    If pixelserv-tls already is updated to the latest version, disable and then enable ad-blocking a to set the owner rights of the certificate directory.
     
    Last edited: Oct 5, 2017
    Xentrk, eclp, adie and 1 other person like this.
  2. eclp

    eclp Regular Contributor

    Joined:
    May 15, 2016
    Messages:
    128
    After the update comes this message:
    Code:
    Oct  5 10:34:09 pixelserv[1302]: invalid file path de-de
    What does that mean?
     
  3. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    That seems a localization error that is not handled properly or something.
    Ask kvic in his support forum, he no longer responds to posts here on SNB.
     
    eclp likes this.
  4. MartinDEE

    MartinDEE Occasional Visitor

    Joined:
    Sep 28, 2015
    Messages:
    22
    This error message keep popping up in the log file

    Code:
    Oct  6 07:51:33 pixelserv[15095]: tracking.netrefer.com _.netrefer.com missing
    Oct  6 07:51:33 pixelserv[15095]: Failed to open file /opt/var/cache/pixelserv/_.netrefer.com
    
    pixelserv-tls version: v35.HZ12.Kk compiled: Sep 25 2017 19:44:15 options: 10.******
     
  5. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    Use cu to update AB-Solution, then disable and re-enable ad-blocking.
     
    MartinDEE likes this.
  6. MartinDEE

    MartinDEE Occasional Visitor

    Joined:
    Sep 28, 2015
    Messages:
    22
    Thank you that has resolved the problem
     
    thelonelycoder likes this.
  7. cmkelley

    cmkelley Occasional Visitor

    Joined:
    Aug 11, 2015
    Messages:
    35
    Will uninstalling AB-Solution wipe out my Entware?? That seems a bit excessive, I use Entware for a lot of things.
    Is there a way to manually uninstall it so I don't lose Entware?

    EDIT/UPDATE: It looks like just editing out the stuff added to /jffs/scripts/ should do it? In case you're wondering why I need to uninstall, first, it seems to have caused some weird issue with my ntp server (on another box) and second, in order to support the websites I want to support, I need the ability to allow ads on a per-website basis (Adblock Plus style), so I'd have to allow all of google's ad services if I did it a the router level. :-( I guess I should have figured out the second issue before hand. Anyways, the tool looks cool, just not suited to my needs.
     
    Last edited: Oct 7, 2017
  8. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    For a standard AB-Solution installation, you can safely remove these files:
    /jffs/scripts/dnsmasq.postconf
    /jffs/scripts/update-notification (will no longer work if AB is removed)

    If pixelserv-tls was installed, also remove:
    /jffs/scripts/wan-start
    And run:
    Code:
    opkg remove pixelserv-tls
    and this, altough this file ought to be deleted by above command:
    Code:
    rm /opt/etc/init.d/S80pixelserv-tls
    and these:
    Code:
    rm /opt/etc/absolution.sig
    rm /opt/bin/ab-solution

    Then edit /jffs/scripts/post-mount to only have these lines left:
    Code:
    #!/bin/sh
    
    if [ "$1" = "/tmp/mnt/<your device>" ];then
        ln -nsf $1/entware /tmp/opt
    fi

    Then edit /jffs/scripts/services-start, removing these two lines:
    Code:
    logger "AB-Solution started rc.unslung via $0"
    $RC start $0
    (and all the comment lines starting with # if you wan to)

    Then restart dnsmasq with:
    Code:
    service restart_dnsmasq
    Then remove the /mnt/<your device>/adblocking/ directory:
    Code:
    rm -rf /mnt/<your device>/adblocking/
    and the AB main file:
    Code:
    rm /mnt/<your device>/ab-solution.sh
    Then, for good measure, reboot the router and hope for the best...
     
  9. cmkelley

    cmkelley Occasional Visitor

    Joined:
    Aug 11, 2015
    Messages:
    35
    Thank you TLC, much appreciated!
     
  10. bayern1975

    bayern1975 Very Senior Member

    Joined:
    Sep 22, 2015
    Messages:
    547
    no way to block ads in tapatalk in last two month's....any solution?

    Sent from my Huawei-P10 using Tapatalk
     
  11. wyldstallyn

    wyldstallyn Occasional Visitor

    Joined:
    Aug 16, 2017
    Messages:
    11
    Location:
    Canada
    Can there be an option to save router stats to a file and send a weekly email?
     
  12. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    No status change.
     
  13. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    Not through the UI.
    But you can comment out line 397 in /adblocking/addon/log-stats.add from
    Code:
        if [ $4 == "on" ];then
             rm -f $3
        fi
    to this:
    Code:
        if [ $4 == "on" ];then
        #    rm -f $3
        fi
    Be aware that updates may replace the file.
     
  14. Alfsu

    Alfsu Regular Contributor

    Joined:
    Sep 13, 2013
    Messages:
    90
    Testing installation on RT-AC86U with Merlin 382.1_A3:

    Code:
    [email protected]:/tmp/mnt/4GB# sh ab-solution.sh
        _   ___     ___      _      _   _
       /_\ | _ )___/ __| ___| |_  _| |_(_)___ _ _
      / _ \| _ \___\__ \/ _ \ | || |  _| / _ \ ' \
     /_/ \_\___/   |___/\___/_|\_,_|\__|_\___/_||_|
    
     Welcome
     This is AB-Solution 3.9 [3.9.1]
    
     looking for an installation
     found AB-Solution on /tmp/mnt/4GB
     checking installation state
    ls: /tmp/var/spool/cron/crontabs: No such file or directory
    grep: /tmp/var/spool/cron/crontabs/username: No such file or directory
    ls: /tmp/var/spool/cron/crontabs: No such file or directory
    grep: /tmp/var/spool/cron/crontabs/username: No such file or directory
    it seems the installation script fails to create files under /tmp/var/

    I had to remove ab-solution to regain internet access...

    On testing mode at the moment, so let me know if you like to have some tests done to get ab-solution running on the AC86U!

    Thank you

    EDIT: Try installation with and without AiProtection.
    These are the only Cron Jobs listed:
    Code:
    /jffs$ cru l
    00 2 * * Wed /tmp/mnt/4GB/adblocking/addon/update-hosts.add cronjob #AB_UpdateHosts#
    20 5 * * * /tmp/mnt/4GB/adblocking/addon/rotate-logs.add #AB_RotateLogs#
     
    Last edited: Oct 11, 2017
    .TT. likes this.
  15. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    That was created by a simple cru a command which appears to be the same in the 382.xx code.
    Apart from that, was the install successfull?
    Without a device to test it on myself, I'm not going to change any of the AB-Solution code. It would be guesswork with no end, even if only a small part of the thousands of lines of code need adjustment.
     
  16. iManuB

    iManuB Occasional Visitor

    Joined:
    Apr 24, 2017
    Messages:
    36
    I have a stupid question:

    It's okay a USB stick (4GB) with these features: read: 5.80mb/s - write: 17.80mb/s

    It's enough?

    This USB have three partition: AB-Solution - Entware (for Pixelsrv-tls) and Skynet.

    Thanks!
     
  17. Alfsu

    Alfsu Regular Contributor

    Joined:
    Sep 13, 2013
    Messages:
    90
    Ad blocking is working; PS won't install with script though.

    Sent from my ONEPLUS A3000 using Tapatalk
     
    thelonelycoder likes this.
  18. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    More than enough.
     
  19. iManuB

    iManuB Occasional Visitor

    Joined:
    Apr 24, 2017
    Messages:
    36
    I was confused: the parameters are inverted:

    write: 5.80mb/s - read: 17.80mb/s

    Thanks!
     
  20. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    3,065
    Location:
    In the heart of Switzerland
    I thougt so, it was obvious.
     

Share This Page