OPNsense Forum

English Forums => General Discussion => Topic started by: ianmc on January 12, 2023, 06:34:42 AM

Title: Blocking/allowing traffic based on regular expressions?
Post by: ianmc on January 12, 2023, 06:34:42 AM
Hi all
I have recently started using opnsense instead of pfsense.
It seems more straight forward to setup.

It is virtuaised in proxmox.
A couple of containers i was using have been replaced, like pihole & tor. Now their functionality is in opnsense.
I have another pihole container on proxmox which is a special case for my android TV.
Typically phole downloads blocklists and filters using them.
In this case I have EVERYTHING blocked by default using DNS . I allow traffic for particular apps based on regular expressions. No blocklists are used.

It was a little tricky so setup, but now it works as I wish.
In case anyone is curious smart TVs are spying on you a lot. The pihole the TV uses has a block rate of 95%. It is constantly trying to call home.

So my TV will be on its own LAN. I need a method of blocking/allowing traffic based on regular expressions.
I have tried  to set the tv proxy to the web proxy and block all other traffic from it. Most apps would not work.

I need a way of using regualr expressions to block/allow traffic.
A web proxy is no good there as some apps on the it seems do not use standerd web traffic.

I wish to buy a low lower PC to use as a opnsense router and use ther present server as a NAS & maybe jellyfin.
Before that I need the proxmox  containers I have with tor, pihole end others to be have their function replaced in the router instead.

Useful info is appreciated.

Thanks
Title: Re: Blocking/allowing traffic based on regular expressions?
Post by: cookiemonster on January 12, 2023, 03:31:44 PM
AdGuard plugin in OPN and test the regexes on AdGuard?
Title: Re: Blocking/allowing traffic based on regular expressions?
Post by: ianmc on January 15, 2023, 06:45:14 AM
Thanks. I will look into it.