Adblock Plugin

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

Moderator: Moderators

Post Reply
Spine
Posts: 12
Joined: Thu Apr 23, 2015 2:28 am
Location: Belarus

Re: Adblock Plugin

Post by Spine »

Iptables rules AdBlock plug-in conflict with the rules of the plugin TOR.
After installing the AdBlock names of zone .onion are not resolved.
WDR-4300, WR-740n
Experience increases in proportion to the number of broken equipment.

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

Re: Adblock Plugin

Post by Lantis »

Can you give me more information please?
I don't use TOR so it's going to be very difficult for me to test.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Spine
Posts: 12
Joined: Thu Apr 23, 2015 2:28 am
Location: Belarus

Re: Adblock Plugin

Post by Spine »

Lantis,
TOR uses the following rules:

Code: Select all

iptables -t nat -A tor_client -p tcp --dport 53  -m string --hex-string '|056f6e696f6e00|' --algo bm -j REDIRECT --to-ports  9053
iptables -t nat -A tor_client -p udp --dport 53  -m string --hex-string '|056f6e696f6e00|' --algo bm -j REDIRECT --to-ports  9053
AdBlock add these:

Code: Select all

iptables -t nat -I PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53
iptables -t nat -I PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53
and requests for port 53 in TOR is not processed.

As a workaround, I disabled the addition of rules AdBlock, my clients use as a DNS address of the router so it works without them.
WDR-4300, WR-740n
Experience increases in proportion to the number of broken equipment.

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

Re: Adblock Plugin

Post by Lantis »

Ahh.
Ok, that looks like a reasonably unsolvable conflict. Let me work on it.
For now, I'm going to mark them as incompatible.

Thanks for reporting the problem.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Adblock Plugin

Post by tapper »

Hi Lantis can you test to see if ads are still blocked after a reboot. Sometimes when my box reboots ads are not blocked and I have to log on to the web interface and click the update button.
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

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

Re: Adblock Plugin

Post by Lantis »

It should be fine. My router reboots once a week with no problems after.

You're not scheduling a reboot for Sunday's at 4am are you? Cause that will cause a drama lol.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

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

Re: Adblock Plugin

Post by ispyisail »

Cause that will cause a drama lol.
???

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

Re: Adblock Plugin

Post by Lantis »

The adblock plugin currently updates its list at 4am on a Sunday. If you have a reboot scheduled for the same time (which, i accidentally did 2 weeks ago) you'll find that it stops working.

This is because the first part of updating is to remove the old list to make sure we have plenty of room for the new list.
the reboot happens just moments after that process completes successfully.

trust me, i was very confused for a while when that happened. :D
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

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

Re: Adblock Plugin

Post by ispyisail »

why were you up at 4:00am anyway. That was the real problem :)

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

Re: Adblock Plugin

Post by Lantis »

Says the guy with the new baby ;)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply