OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: cnicules on October 23, 2021, 08:08:54 pm

Title: web filtering
Post by: cnicules on October 23, 2021, 08:08:54 pm
Hello,
i want to filter specific websites only to some IPs. for ex: youtube,facebook ....

i tryed with web proxy and firewall rules + alias fqdn.
i can not make it work.

it's supposed to work?

Cheers,

Ciprian
Title: Re: web filtering
Post by: cnicules on October 23, 2021, 09:03:47 pm
hmm got bitten by nat order :)
nat is first, then filtering.
so my solution is a mix of firewall filter by fqdn and transparent web proxy (to have a way to collect the fqdn's).

- the web proxy is normal, no blacklist
- create one alias with the fqdn i need to block
- the nat rule for transparent proxy, is changed to do nat to all traffic except destination to my alias
- then the filter rule drop the traffic toward my alias
- and offcourse the nat can be done also by source IP

now kids have no escape :) mhuhahahaha mwuhahahaha

Cheers,