I have a number of CentOS 7 VPS running Docker and are orchastrated by Cattle (Rancher).
These VPS should only be accessible from a couple of IP addresses on the internet and all other sources should be dropped/ignored. I have configured firewalld appropriately and the restriction is working for the standard system services, such as SSH, but when I deploy a container to them the exposed port is being allowed from anywhere.
It seems that Docker is mapping the host IP/port to the container IP/port (which is correct) but then this rule is being inserted into netfilter BEFORE my explicit source allow list...
Is there anyway to get around this? Any help would be much appreciated.