OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Adblock with dnsmasq/yoyo anybody?
« previous next »
  • Print
Pages: [1]

Author Topic: Adblock with dnsmasq/yoyo anybody?  (Read 6087 times)

Jack V

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Adblock with dnsmasq/yoyo anybody?
« on: April 29, 2017, 12:46:12 pm »
Hi all,

I want to try to setup a simpel DNS adblock for my clients in my network with yoyo.org and dnsmasq. I have a running working configuration on Debian with dnsmasq but I have no clue how to do this with OPNsense.

I don't want to go the web proxy way, I want to block ad networks on the DNS level where it should be blocked.

Is there away to achieve this on OPNsense? It would be nice to let OPNsense handle this task.
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Adblock with dnsmasq/yoyo anybody?
« Reply #1 on: April 29, 2017, 08:42:26 pm »
I don't know if there is a tutorial but for the DNS resolver there does one exist (non official):
https://devinstechblog.com/block-ads-with-dns-in-opnsense/
Note that I had to convert the line endings with dos2unix to make the script working on my device.

Kind regards

Fabian
Logged

Jack V

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Re: Adblock with dnsmasq/yoyo anybody?
« Reply #2 on: April 30, 2017, 11:33:37 am »
Hi Fabian,

Thanks! 8)

I got it working on OPNsense 17.1.5.

Will this stick between the upgrades?
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Adblock with dnsmasq/yoyo anybody?
« Reply #3 on: April 30, 2017, 12:58:40 pm »
Maybe - if /var is not a tmpfs it does.
Logged

csmall

  • Full Member
  • ***
  • Posts: 121
  • Karma: 5
    • View Profile
Re: Adblock with dnsmasq/yoyo anybody?
« Reply #4 on: April 30, 2017, 05:21:45 pm »
Quote from: Jack V on April 30, 2017, 11:33:37 am
Hi Fabian,

Thanks! 8)

I got it working on OPNsense 17.1.5.

Will this stick between the upgrades?

How did this work out for you? Is it doing a good job at blocking ads? Does it block YouTube video ads?
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Adblock with dnsmasq/yoyo anybody?
« Reply #5 on: April 30, 2017, 06:38:34 pm »
I had issues with unbound on my hardware so I had to disable it. I am blocking via Proxy (works well) and via Firefox add on (ublock origin). I know that DNS based blocking is also good for apps on Android.
Logged

Jack V

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
    • View Profile
Re: Adblock with dnsmasq/yoyo anybody?
« Reply #6 on: May 01, 2017, 02:19:47 pm »
What kind of hardware issues where you having? Just curious.

It works great for blocking ads on Android and what not.

YouTube ads still come in Csmall, but anything else gets blocked. Probably its just (hopefully) adding a ad host of YouTube to the blocked list. If that doesn't work anymore then Google has found new ways to irritate there YouTube clients :(
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Adblock with dnsmasq/yoyo anybody?
« Reply #7 on: May 01, 2017, 04:57:23 pm »
It is strange: unbound crashes on my box due boot and maybe on interface state changes (up/down) - not a problem people usually have. It is an apu1 board.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Adblock with dnsmasq/yoyo anybody?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2