Yes, there is a way. At least two ways that I can think of.
(1) Use "pi hole", which is not just for Raspberry pi anymore.
(2) Set your machine (or lan) up with a caching dns server, in which you define unwanted hosts/domains like "compute-1.amazonaws.com" to have a particular -reserved- ip-address like (192.0.0.1) and then you have firewalld block (192.0.0.1)
Quote:
Originally Posted by vinmansbrew
Rhel 7.9 using firewalld
I know how to block IPs, what I'd like to do is block a url. For example compute-1.amazonaws.com, so that anything from that address gets blocked.
Is there a way to do this, without camping netstat and blocking every IP I see from the address?
I haven't found anything that seems to reference doing this.
Thanks
|