You are not logged in.

#1 2023-06-14 02:54:02

lzer0
Member
Registered: 2022-05-17
Posts: 8

dnsmasq-regex whitelists fails to work with a deny all rule

I have setup a list of domains to allow/deny with dnsmasq-regex, from here

First goes the whitelist rules, everything that is not explicitly whitelisted will be denied later by a deny all policy.

server=/domain1.example/#
server=/:regex2:/#
server=/:foo.bar3:/#

Then I add this regex rule, where everything is denied. But it's not working as expected since the above whitelist is being ignored.

address=/:.*:/#

In Squid, and in Acrylic DNS (Windows) it is possible to specify a whitelist of allowed domains, and then a DENY ALL / NX * policy. Order matters in both Squid and Acrylic, if the deny/NX all rule goes first this will invalidate every whitelist that goes after. I thought this was the case with dnsmasq-regex but the whitelists won't work with a deny all regex regardless of order. Is there any way to make this work?

Also the reason I need dnsmasq and Acrylic is because Squid itself is unable to listen on UDP ports for online netplay emulators like Project64, Slippi and Dolphin need them.
If there was an alternative to Squid that had exactly the same features and filtering rules plus with UDP listening support, I would like try that.

Last edited by lzer0 (2023-06-14 02:55:04)

Offline

Board footer

Powered by FluxBB