OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: tryllz on March 17, 2021, 05:12:49 PM

Title: How to blocking certain Web URLs..
Post by: tryllz on March 17, 2021, 05:12:49 PM
Hi,

I have been trying to find how to block just some URLs but can't seem to find how. I tried by using Alias > Host (IP) and applied it to Destination in a rule but that was ineffective. The only way I see is by using the Web Filtering and downloading the list file as shown here https://docs.opnsense.org/manual/how-tos/proxywebfilter.html that uses Category based blocking.

Any other way I can block some URL's, by manually entering them, or via some custom txt file that can be uploaded to the firewall ?!

firewall

Thank You
Title: Re: How to blocking certain Web URLs..
Post by: Patrick M. Hausen on March 17, 2021, 05:16:52 PM
A network layer firewall just sees IP addresses and ports and cannot identify specific URLs. So you would need to use a web proxy to do that.
Title: Re: How to blocking certain Web URLs..
Post by: tryllz on March 17, 2021, 05:21:14 PM
Quote from: pmhausen on March 17, 2021, 05:16:52 PM
A network layer firewall just sees IP addresses and ports and cannot identify specific URLs. So you would need to use a web proxy to do that.
But with Proxy it doesn't allow Custom URL's to be blocked, or perhaps I wasn't able to find how.
Title: Re: How to blocking certain Web URLs..
Post by: Matriciel on March 18, 2021, 04:31:34 PM
Maybe with Sensei or a real external web proxy
Title: Re: How to blocking certain Web URLs..
Post by: lfirewall1243 on March 21, 2021, 02:19:48 PM
If your Client and the Opnsense are using the same dns (better the OPNsense is the DNS Server for your client).

You can block them via an Alias