I have a container with fail2ban on it. On my development computer when I add this to docker-compose:
cap_add: - NET_ADMIN - NET_RAW
I can see rules are added to iptables both inside container and outside it and it works properly. When I try the same configuration on EC2 instance, i can see those rules inside container, but not on the host system. What’s wrong?
Thanks in advance.