This page shows you how to filter your traffic based on a IP with firewalld rich rules.
firewall-cmd --permanent \
--add-rich-rule='rule family="ipv4" source address="192.168.78.76/32" protocol value="tcp" accept'
where:
Execute this command:
firewall-cmd --permanent \
--add-rich-rule='rule family="ipv4" source address="192.168.78.76/32" port port="8080" protocol="tcp" accept'
where:
If you want to filter your packets by country, see this page:
How to restrict your firewall by country firewalld (ie iptable)
If you want to filter your HTTP packet based on subnet such as all server from Cloudlfare, see this page:
How to allow only the HTTP traffic from a subnet such as Cloudflare with Firewalld?