What's new

AB-Solution 1.0 release

  • 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!

Feature Request: Please consider adding an option to "follow" only the sites that are blocked. Something like the following:

tail -F $installDirPath/logs/dnsmasq.log | grep 0.0.0.0
This might help in trying to determine white list entries for certain problematic sites. For example, navigating to cbs.com and attempting to launch a video generates (pretty scary how many sites are accessed, but I'm guessing that only a subset would be necessary to access the video):

Feb 15 20:30:28 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock www.googletagmanager.com is 0.0.0.0
Feb 15 20:30:29 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock us-u.openx.net is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock b.scorecardresearch.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock native.sharethrough.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock www.googletagservices.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock cdn.clicktale.net is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock syndication.streamads.yahoo.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock www.google-analytics.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock adserver.adtechus.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock ib.adnxs.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock tapestry.tapad.com is 0.0.0.0
Feb 15 20:30:37 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock geo.query.yahoo.com is 0.0.0.0
Feb 15 20:30:38 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock pubads.g.doubleclick.net is 0.0.0.0
Feb 15 20:30:41 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock 79423.analytics.edgesuite.net is 0.0.0.0
Feb 15 20:30:41 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock gwa.lphbs.com is 0.0.0.0

Thanks!
 
Last edited:
Thanks Lonely for the hours of coding to make it easy for us! Awesome!
 
Feature Request: Please consider adding an option to "follow" only the sites that are blocked. Something like the following:

tail -F $installDirPath/logs/dnsmasq.log | grep 0.0.0.0
This might help in trying to determine white list entries for certain problematic sites. For example, navigating to cbs.com and attempting to launch a video generates (pretty scary how many sites are accessed, but I'm guessing that only a subset would be necessary to access the video):

Feb 15 20:30:28 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock www.googletagmanager.com is 0.0.0.0
Feb 15 20:30:29 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock us-u.openx.net is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock b.scorecardresearch.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock native.sharethrough.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock www.googletagservices.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock cdn.clicktale.net is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock syndication.streamads.yahoo.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock www.google-analytics.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock adserver.adtechus.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock ib.adnxs.com is 0.0.0.0
Feb 15 20:30:30 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock tapestry.tapad.com is 0.0.0.0
Feb 15 20:30:37 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock geo.query.yahoo.com is 0.0.0.0
Feb 15 20:30:38 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock pubads.g.doubleclick.net is 0.0.0.0
Feb 15 20:30:41 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock 79423.analytics.edgesuite.net is 0.0.0.0
Feb 15 20:30:41 dnsmasq[3739]: /tmp/mnt/sdb2/adblocking/hosts-adblock gwa.lphbs.com is 0.0.0.0

Thanks!
I can do that, anything else you guys look forward to to filter for?
 
i removed all old content of beta version and reboot router....then i install the new version and i think it is all ok.....do i need put this in terminal too? i didn`t yet?
Code:
wget https://raw.githubusercontent.com/decoderman/AB-Solution/master/ab-solution.sh --no-check-certificate

i add this two address to blacklist but still see the ads? is this correct?
Code:
# Add blacklisted Domains as follows, without the leading #
# 0.0.0.0 pricegrabber.com
# 0.0.0.0 www.pricegrabber.com
  0.0.0.0 wlbetclic.adsrv.eacdn.com
  0.0.0.0 promos.bwin.com
this is the site where are this ads....
Code:
http://www.sportstream.tv/
 
Last edited:
This is a good idea. Running And updating the Script in the USB, so no wearing out of the router's Flash Happen!
This is going to be a automated feature for the next version. Including a symlink back to /home/root if so desired.
Also I try to restore the contents of .ash_history as well after a reboot.
 
i removed all old content of beta version and reboot router....then i install the new version and i think it is all ok.....do i need put this in terminal too? i didn`t yet?
If it says AB-Solution 1.0 then you run the latest version.
If unsure, activate both logging and ad-blocking. Then post the contents of /etc/dnsmasq.conf.
 
What about blocking ads if i use openvpn outside my home network? I connected right now with my phone using openvpn and ads are still here....

sent from Kodi 17 Krypton
 
What about blocking ads if i use openvpn outside my home network? I connected right now with my phone using openvpn and ads are still here....

sent from Kodi 17 Krypton

Have you configured the OpenVPN server to use the router's DNS for VPN clients?
 
Have you configured the OpenVPN server to use the router's DNS for VPN clients?
hmmm, i think i did not....i will check this settings....i find that settings but i do not know what to insert there in costum configuration....

sent from Kodi 17 Krypton
 
Last edited:
Have you configured the OpenVPN server to use the router's DNS for VPN clients?
This is something I want to check during the install as well, but just had not the time to do it.

Can you post a screenshot of what settings you made so I can recreate it for my tests with my VPN provider?
I can then implement the findings in one of the next versions.
 
This is something I want to check during the install as well, but just had not the time to do it.

Can you post a screenshot of what settings you made so I can recreate it for my tests with my VPN provider?
I can then implement the findings in one of the next versions.

I will do that this evening when I get home.
 
I am talking about open vpn server....i set respond to DNS to yes and advertise DNS to clients to yes....then i put in costum configuration two DNS server IP from my ISP and still do not working....

sent from Kodi 17 Krypton
 
put in costum configuration two DNS server IP from my ISP
Can you toggle either Adblocking or logging on or off and back to what it was. This will regenerate the AB-Solution settings file and fill it with the latest data.
I am interested in what the config file entries are under the heading 'Backup settings (not used yet)'
 
Have you configured the OpenVPN server to use the router's DNS for VPN clients?

i added this two IP address from my ISP server provider but now openvpn not working if i connect outside my network....
8112701821.png

and this is log

Code:
Feb 16 15:33:42 rc_service: httpd 452:notify_rc restart_chpass;restart_vpnserver1;restart_dnsmasq
Feb 16 15:33:43 openvpn[1023]: event_wait : Interrupted system call (code=4)
Feb 16 15:33:43 openvpn[1023]: Closing TUN/TAP interface
Feb 16 15:33:43 openvpn[1023]: /usr/sbin/ip addr del dev tun21 10.8.0.1/24
Feb 16 15:33:43 openvpn[1023]: PLUGIN_CLOSE: /usr/lib/openvpn-plugin-auth-pam.so
Feb 16 15:33:43 openvpn[1023]: SIGTERM[hard,] received, process exiting
Feb 16 15:33:44 kernel: tun: Universal TUN/TAP device driver, 1.6
Feb 16 15:33:44 kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Feb 16 15:33:44 kernel: ADDRCONF(NETDEV_UP): tun21: link is not ready
Feb 16 15:33:44 kernel: device tun21 entered promiscuous mode
Feb 16 15:33:44 kernel: Interface tap21 doesn't exist
Feb 16 15:33:45 openvpn[1308]: Options error: Unrecognized option or missing parameter(s) in config.ovpn:29: 95.176.233.13 (2.3.8)
Feb 16 15:33:45 openvpn[1308]: Use --help for more information.
Feb 16 15:33:45 syslog: VPN_LOG_ERROR: 1375: Starting VPN instance failed...
Feb 16 15:33:45 kernel: Interface tap21 doesn't exist
Feb 16 15:33:45 kernel: ADDRCONF(NETDEV_CHANGE): tun21: link becomes ready
Feb 16 15:33:45 kernel: Interface tun21 doesn't exist
Feb 16 15:33:45 dnsmasq[1062]: exiting on receipt of SIGTERM
Feb 16 15:33:45 custom config: Appending content of /jffs/configs/dnsmasq.conf.add.
Feb 16 15:33:45 custom script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)
Feb 16 15:33:45 admin: AB-Solution added entries via dnsmasq.postconf
Feb 16 15:33:45 dnsmasq[1353]: started, version 2.76-g41a8d9e cachesize 1500
Feb 16 15:33:45 dnsmasq[1353]: DNSSEC validation enabled
Feb 16 15:33:45 dnsmasq[1353]: warning: interface tun21 does not currently exist
Feb 16 15:33:45 dnsmasq[1353]: warning: interface ppp1* does not currently exist
Feb 16 15:33:45 dnsmasq[1353]: warning: ignoring resolv-file flag because no-resolv is set
Feb 16 15:33:45 dnsmasq[1353]: asynchronous logging enabled, queue limit is 5 messages
Feb 16 15:33:45 dnsmasq-dhcp[1353]: DHCP, IP range 192.168.200.2 -- 192.168.200.254, lease time 1d
Feb 16 15:33:45 dnsmasq[1353]: using nameserver 127.0.0.1#65053
Feb 16 15:33:45 dnsmasq[1353]: read /etc/hosts - 5 addresses
Feb 16 15:33:45 dnsmasq[1353]: read /tmp/mnt/sda1/adblocking/blacklist.txt - 2 addresses
Feb 16 15:33:50 dnsmasq[1353]: read /tmp/mnt/sda1/adblocking/hosts-adblock - 385307 addresses
Feb 16 15:33:50 dnsmasq[1353]: using nameserver 127.0.0.1#65053
 
@bayern1975 I am pretty sure that the custom configuration is not meant to be filled with IP Addresses.
The log says clearly that more is expected:
Options error: Unrecognized option or missing parameter(s) in config.ovpn:29: 95.176.233.13
 
@bayern1975 I am pretty sure that the custom configuration is not meant to be filled with IP Addresses.
The log says clearly that more is expected:
Options error: Unrecognized option or missing parameter(s) in config.ovpn:29: 95.176.233.13
ok, this is not realy important....i was just testing but i didn`t get connection outside of my network.....but i realy like to know what can i do to block ads if i connect over openvpn outside of my network...if i connected in my local network then is all ok....no ads on pc or phone....
 
Thank you , it was easier than the old method

i think it worked . anyway to check ? :p
 

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