netblue30 / fdns

Firejail DNS-over-HTTPS Proxy Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whitelist for domain names

rusty-snake opened this issue · comments

A whitelist of allowed domain names would be very nice for use with single firejail sandboxes.

Example:

$ sudo fdns --proxy-addr=127.1.2.3 --wh-dn=mozilla.org --wh-dn=gmail.com
$ firejail --dns=127.1.2.3 thunderbird

Maybe it is better to put the whitelist in a file.

Do you mean we should allow only the domains in the whitelist and drop all other? I would call it --whitelist:

--whitelist=domain
--whitelist-file=filename

Yes, only whitelisted domain names are resolved.

--whitelist is done, I'll look into --whitelist-filename

I have enabled the code from @startx2017 - yes, it was an AppArmor problem, we were blacklisting the user file!