I need to implement some particular firewall rules.
I’ve configured the rules I want in UFW, but docker seems to play by its own rules.
What is the best, or approved method to have the anthias docker defer to UFW’s firewall rules?
I need to implement some particular firewall rules.
I’ve configured the rules I want in UFW, but docker seems to play by its own rules.
What is the best, or approved method to have the anthias docker defer to UFW’s firewall rules?
@Dhe, I haven’t tried those yet, but you can try the methods in https://www.howtogeek.com/devops/how-to-use-docker-with-a-ufw-firewall/. Have you tried modifying /etc/ufw/after.rules
?
Yes, I tried that, perhaps I did it wrong, but no soup for me.
I did some basic research, and the official Docker docs says that “Docker and ufw use iptables in ways that make them incompatible with each other.”
Have you tried firewalld?