OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Introducing UnboundBL, a Unbound DNS-based adblocker for OPNsense!
« previous next »
  • Print
Pages: [1] 2

Author Topic: Introducing UnboundBL, a Unbound DNS-based adblocker for OPNsense!  (Read 30932 times)

alectrocute

  • Newbie
  • *
  • Posts: 9
  • Karma: 2
  • open source, actually
    • View Profile
Introducing UnboundBL, a Unbound DNS-based adblocker for OPNsense!
« on: August 25, 2018, 10:04:06 am »
Hey guys,

I'm a total newbie here. I've been using OPNsense for six months now and love it; thought I'd give back by beginning development on OPNblock! It's a package which generates a configuration file for Unbound DNS, converting unlimited, external URL host-file blacklists! It also includes a regex-based whitelist.



Please check it out, give it a spin on your development (or if you're daring, production) machine and let me know what you think!

https://github.com/alectrocute/UnboundBL

There's a lot of development to do and I plan on doing it. I literally just started and finished this today, so give me a few more weeks, hehe. The plan is to make it above and beyond pfBlocker, with an NGINX-based SSL pixel server, statistics, cron-job manager, easy list management and more. In its current state, it's super barebones.

Thanks, OPNsense community!
« Last Edit: March 13, 2019, 01:31:29 am by alec »
Logged

alectrocute

  • Newbie
  • *
  • Posts: 9
  • Karma: 2
  • open source, actually
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #1 on: August 25, 2018, 10:04:22 am »
Reserving this post for future changelog.
Logged

alectrocute

  • Newbie
  • *
  • Posts: 9
  • Karma: 2
  • open source, actually
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #2 on: August 25, 2018, 10:59:39 am »
I'm getting strange kernel panics, related to it not showing up on the menu (sometimes?)

If anybody can help critique the code and get it up to par, that would be great. Thank you!
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #3 on: August 25, 2018, 12:45:16 pm »
Interesting... installed it but all I get when reloading the lists is 'something went wrong'. I've used the same github.com entry for whitelist and for blacklist - https://hosts-file.net/ad_servers.txt, I have also added the unbound entry.


Heavy night last night so guidance is probably needed at this point. :)
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #4 on: August 25, 2018, 01:37:24 pm »
Perhaps you better add a PR with WIP in subject. PR is was easier to review :)
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

alectrocute

  • Newbie
  • *
  • Posts: 9
  • Karma: 2
  • open source, actually
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #5 on: August 25, 2018, 06:34:12 pm »
Quote from: marjohn56 on August 25, 2018, 12:45:16 pm
Interesting... installed it but all I get when reloading the lists is 'something went wrong'. I've used the same github.com entry for whitelist and for blacklist - https://hosts-file.net/ad_servers.txt, I have also added the unbound entry.


Heavy night last night so guidance is probably needed at this point. :)

Hmm. Let me check that out. There's obviously more work to be done. :)
Logged

alectrocute

  • Newbie
  • *
  • Posts: 9
  • Karma: 2
  • open source, actually
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #6 on: August 25, 2018, 06:34:49 pm »
Quote from: mimugmail on August 25, 2018, 01:37:24 pm
Perhaps you better add a PR with WIP in subject. PR is was easier to review :)

On github's opnsense/plugins repo?
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #7 on: August 25, 2018, 06:50:41 pm »
Quote from: alec on August 25, 2018, 06:34:49 pm
Quote from: mimugmail on August 25, 2018, 01:37:24 pm
Perhaps you better add a PR with WIP in subject. PR is was easier to review :)

On github's opnsense/plugins repo?


Yes, does not need to be perfect just PR it to there and we can rip it to pieces with greater ease.  :)


Only joking, looks nice, but will be easier to play with if there's a PR.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

youngman

  • Newbie
  • *
  • Posts: 39
  • Karma: 5
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #8 on: August 26, 2018, 03:01:23 am »
Looking forward to where this (& mimugmail's Bind plugin) might lead to!

At present I use a cron job, along with the method described here to load my DNS blacklists: https://forum.opnsense.org/index.php?topic=6734.0 & https://devinstechblog.com/block-ads-with-dns-in-opnsense/. Would be really nice to eventually transition to a nice gui interface!

Keep up the good work guys!



Logged

alectrocute

  • Newbie
  • *
  • Posts: 9
  • Karma: 2
  • open source, actually
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #9 on: August 27, 2018, 06:07:35 pm »
Hey fellas,

I've created a PR here. Please rip it apart, for the greater good! It includes some possibly breaking-changes.

https://github.com/opnsense/plugins/pull/808

Thanks!
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #10 on: August 27, 2018, 06:09:20 pm »
Thanks Alec, will look at it soon.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

SuperDOS

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #11 on: September 22, 2018, 10:08:02 am »
Nice work! been waiting for a proper adblock plugin for opnsense :D

Any thoughts of using pixelserv? https://github.com/kvic-z/pixelserv-tls
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #12 on: September 22, 2018, 12:19:37 pm »
You can also use Bind plugin
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #13 on: September 22, 2018, 01:59:25 pm »
I think this can be done using the nginx plugin and some DNS manipulations.
Logged

kvic

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Introducing OPNblock, a Unbound DNS-based adblocker for OPNsense!
« Reply #14 on: March 02, 2019, 03:38:25 pm »
Hi,

What's the current status of this project?
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Introducing UnboundBL, a Unbound DNS-based adblocker for OPNsense!
 

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