I am trying to get my firewalld to block an ip address with the rules:
sudo firewall-cmd --zone=block --add-source=<ip_address/submask> --permanent, and also adding thisrichruleto the default zone (public)sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address=<ip_address> reject, then finally I reload the rule withsudo firewall-cmd --reload
But still I can navigate to the sites in my browser. Obviously I am doing some thing wrong. How can I block access to any webpage using firewalld.
These are my zone rules set:
block (active)
interfaces: enp0s3
sources: 172.217.5.110/32 216.49.176.33/32
services:
ports:
protocols:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
public (default, active)
interfaces: docker0
sources:
services: dhcpv6-client ssh
ports: 993/tcp 995/udp 995/tcp 22161/udp 4243/tcp 22/tcp 22/udp 465/tcp
protocols:
masquerade: no
forward-ports:
icmp-blocks:
rich rules: