Question Locked

RE: How to fix the Docker and UFW security flaw

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How to fix the Docker and UFW security flaw

So, if I decide to use ufw-docker instead, would that be a worthwhile improvement over what was specified in the article above? Thanks

3 replies

by rproffitt edited

It's a safe bet you would ignore that and meet with your CTO and CIO to discuss a new plan.

The last I checked "Docker ignores rules set by UFW" so that's a non-starter. Make new plans.

by 12alicemia

The article is quite dated (2018), and Docker bypassing UFW is a known behavior. ufw-docker can help, but it doesn’t fully solve the issue since Docker still manages iptables directly. It is better to rely on Docker’s own networking rules or limit exposure (e.g., bind to localhost or use a reverse proxy) rather than depending on UFW alone.

by babarzehri820 edited

Using ufw-docker can be a worthwhile improvement, especially if you want better control over how Docker interacts with UFW. Since Docker can bypass UFW by managing iptables directly, ufw-docker helps enforce firewall rules more consistently.

This discussion is closed to new replies.