I have multiple Docker containers on a Centos 7 host and all their network interfaces are added to the Docker firewalld zone.
I only want to block one of the containers from accepting traffic on port 22, not all the containers.
I added:
iptables -I DOCKER-USER -p tcp -i br-a4faf253d1ff ! -s 10.2.0.4 --dport 22 -j REJECT
but it did not make a difference. How do I block ports on specific interfaces for Docker containers.