OPNsense Forum

English Forums => General Discussion => Topic started by: minime on April 24, 2016, 05:39:36 pm

Title: [SOLVED] Adblocking as easy as on OpenWRT
Post by: minime on April 24, 2016, 05:39:36 pm
Hi,

First, sorry for the provocative title of my post, but it got your attention, isn't it?  :-)

I'm looking for something like this: https://github.com/teffalump/adblock
Which is incredible easy to handle.

I know there is Squid, but it's not as easy to handle as the referred above, I think, or do i miss something?

Many thanks!
Title: Re: Adblocking as easy as on OpenWRT
Post by: fabian on April 24, 2016, 07:28:34 pm
There is a how to in the docs about filtering using the proxy:
https://docs.opnsense.org/manual/how-tos/proxywebfilter.html
Title: Re: Adblocking as easy as on OpenWRT
Post by: minime on April 24, 2016, 08:43:00 pm
Yes, thanks, I saw that too, but this makes the use of Proxy settings neccessary, right? I don't want to touch the clients. I just want OPNsense to filter. Do I misunderstand?
Title: Re: Adblocking as easy as on OpenWRT
Post by: DokuKäfer on April 24, 2016, 09:18:50 pm
You must use transparent proxy
Title: Re: Adblocking as easy as on OpenWRT
Post by: minime on April 24, 2016, 09:25:19 pm
Thanks, will try that. Do I need to do follow step 6, too?
Title: Re: Adblocking as easy as on OpenWRT
Post by: DokuKäfer on April 24, 2016, 09:32:18 pm
I think this is not the right how to for you. :)

@Fabian can you tell more about transparent proxy? Is this the right howto for his claims?
https://docs.opnsense.org/manual/how-tos/proxytransparent.html
Title: Re: Adblocking as easy as on OpenWRT
Post by: fabian on April 25, 2016, 06:37:38 am
A transparent proxy does not need any configuration on the client.
When the proxy runs in transparent mode, depending on your configuration, any connection to port 80 (HTTP) and / or 443 (HTTPS) will be redirected to the proxy by a firewall rule.

OPNsense has a template for those rules, so you just have to click the link in the help texts.

In case you enable the transparent mode, step 6 in the Web Filtering How To is not required.
Instead you should use the link DokuKäfer provided.

Regards

Fabian
Title: Re: Adblocking as easy as on OpenWRT
Post by: minime on April 25, 2016, 08:37:10 pm
Many thanks for your help! I will test it and report back (just to complete this thread).
Title: [SOLVED] Re: Adblocking as easy as on OpenWRT
Post by: minime on May 05, 2016, 03:27:47 pm
It works, but it is not as elegant as the solution I was referring to.