This solution works however, your containers can no longer connect to the outside world.
Currently searching for a solution where I can whitelist ips to specific ports on an external server
while blocking all other external ips.
Example: 2-4 web apps accessable to the internet, 1 mongo container. I would like to connect to the mongo container from my ip and from the containers, but disallow anyone else to connect to the mongo container
Currently its possible, but all containers lose ability to ping/connect outside the container with --iptables=false
Otherwise all containers are exposed.