Adblock Plugin

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

ple0max
Posts: 8
Joined: Fri Dec 18, 2015 1:33 am

Re: Adblock Plugin

Post by ple0max »

block.hosts exists and it is 145kb in size.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

I don't have access to a working router at the moment.
It may be easier for you to re-enable the plugin and then show me the output of the logread. The install process logs itself.

logread | grep ADBLOCK
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Ziggy
Posts: 7
Joined: Thu Feb 11, 2016 10:28 pm

Re: Adblock Plugin

Post by Ziggy »

I installed version 1.9.0 on my TL-WDR3600, manually removed the 1.0.4 version of DNS Adblock and installed version 1.1, however, I'm unable to get it to work.
I see that I'm missing the block.hosts file. I tried enabling and re-enabling the plugin as previously suggested and it didn't work. It doesn't uninstall through the GUI, so I tried doing it manually, did every step except for "sh /plugin_root/usr/lib/opkg/info/plugin-gargoyle-adblock.postrm" because this package isn't present.
I've attached my logread as well, please help? :)
Attachments
logread.rar
(375 Bytes) Downloaded 265 times

ple0max
Posts: 8
Joined: Fri Dec 18, 2015 1:33 am

Re: Adblock Plugin

Post by ple0max »

Lantis wrote:I don't have access to a working router at the moment.
It may be easier for you to re-enable the plugin and then show me the output of the logread. The install process logs itself.

logread | grep ADBLOCK
I apologize, but how do I execute the command "logread | grep ADBLOCK"?
Am I supposed to copy some lines from Gargoyle System Logs?

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Adblock Plugin

Post by ispyisail »

https://www.youtube.com/watch?v=9gx3MCxwEeI

username: root
password: <your router login>

ple0max
Posts: 8
Joined: Fri Dec 18, 2015 1:33 am

Re: Adblock Plugin

Post by ple0max »

ispyisail wrote:https://www.youtube.com/watch?v=9gx3MCxwEeI

username: root
password: <your router login>
This is what I get:

Code: Select all

Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Enabling adblock plugin
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Removing hosts file from dnsmasq
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Removing cron entry
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Removing firewall rules
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Reverting server error page
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Adding hosts file to dnsmasq
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Adding cron entry
Fri Feb 12 12:30:55 2016 user.notice ADBLOCK: Tor is enabled, discarding firewall rules
Fri Feb 12 12:30:55 2016 user.notice ADBLOCK: Removing old hosts file
Fri Feb 12 12:30:55 2016 user.notice ADBLOCK: Retrieving ad lists from remote source
Fri Feb 12 12:31:16 2016 user.notice ADBLOCK: Adding entries from black.list
Fri Feb 12 12:31:18 2016 user.notice ADBLOCK: Removing entries from white.list
Fri Feb 12 12:31:18 2016 user.notice ADBLOCK: Restarting firewall
Fri Feb 12 12:31:25 2016 user.notice ADBLOCK: Restarting dnsmasq
Fri Feb 12 12:31:29 2016 user.notice ADBLOCK: Restarting web server
But I still see ads on the http://ads-blocker.com/testing/ but I don't see any ads on youtube. I also noticed that the ads on most sites are ads by google.

So, how can I be sure if it is working or not?

Also after enabling adblock plugin, I noticed that one of the entires of port 80 from "Individual Port Forwarding" has disappeared and even after clicking save I cannot add it back. I can't seem to add any NEW entries on "Individual Port Forwarding". BTW this was working before adding the adblock plugin.
Last edited by ple0max on Fri Feb 12, 2016 2:46 am, edited 1 time in total.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

ple0max wrote:
ispyisail wrote:https://www.youtube.com/watch?v=9gx3MCxwEeI

username: root
password: <your router login>
This is what I get:

Code: Select all

Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Enabling adblock plugin
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Removing hosts file from dnsmasq
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Removing cron entry
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Removing firewall rules
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Reverting server error page
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Adding hosts file to dnsmasq
Fri Feb 12 12:30:54 2016 user.notice ADBLOCK: Adding cron entry
Fri Feb 12 12:30:55 2016 user.notice ADBLOCK: Tor is enabled, discarding firewall rules
Fri Feb 12 12:30:55 2016 user.notice ADBLOCK: Removing old hosts file
Fri Feb 12 12:30:55 2016 user.notice ADBLOCK: Retrieving ad lists from remote source
Fri Feb 12 12:31:16 2016 user.notice ADBLOCK: Adding entries from black.list
Fri Feb 12 12:31:18 2016 user.notice ADBLOCK: Removing entries from white.list
Fri Feb 12 12:31:18 2016 user.notice ADBLOCK: Restarting firewall
Fri Feb 12 12:31:25 2016 user.notice ADBLOCK: Restarting dnsmasq
Fri Feb 12 12:31:29 2016 user.notice ADBLOCK: Restarting web server
But I still see ads on the http://ads-blocker.com/testing/ but I don't see any ads on youtube. I also noticed that the ads on most sites are ads by google.

So, how can I be sure if it is working or not?

Also after enabling adblock plugin, I noticed that one of the entires of port 80 from "Individual Port Forwarding" has disappeared and even after clicking save I cannot add it back.

Looks like it installed correctly.
Try navigating to

Code: Select all

http://googleads.g.doubleclick.com/
If it fails, it is working correctly.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

Ziggy wrote:I installed version 1.9.0 on my TL-WDR3600, manually removed the 1.0.4 version of DNS Adblock and installed version 1.1, however, I'm unable to get it to work.
I see that I'm missing the block.hosts file. I tried enabling and re-enabling the plugin as previously suggested and it didn't work. It doesn't uninstall through the GUI, so I tried doing it manually, did every step except for "sh /plugin_root/usr/lib/opkg/info/plugin-gargoyle-adblock.postrm" because this package isn't present.
I've attached my logread as well, please help? :)
Looks like it isn't working because you're using the TOR plugin.
Is this correct?

Due to the nature of TOR there is currently no way for them to work together (that i know of). I simply made it so that installing this plugin wouldn't break TOR.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ple0max
Posts: 8
Joined: Fri Dec 18, 2015 1:33 am

Re: Adblock Plugin

Post by ple0max »

Lantis wrote: Looks like it installed correctly.
Try navigating to

Code: Select all

http://googleads.g.doubleclick.com/
If it fails, it is working correctly.
It failed. :D
I don't think I was ever this happy when a web page failed to load.

Another thing is after enabling adblock plugin, I noticed that one of the entries from "Individual Port Forwarding" of port 80 has disappeared and even after clicking save I cannot add it back. I can't seem to add any new entries through "Individual Port Forwarding".

I will be grateful if you kindly mention how I can add new entries through "Individual Port Forwarding" again.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Adblock Plugin

Post by Lantis »

No idea, that is an unrelated issue. The two systems don't touch each other so i don't know what would cause that.

I just tried it and i can do it just fine.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply