Score:1

Firewall to use when server has docker app hosted?

us flag

I use ubuntu 20.04 with portainer and nginxproxymanager to host my apps. Some are still being hosted bare metal but I am planning to transfer all to docker soon enough.

But the problem is ufw, which I have been using does not integrate with docker apps. The set up is:

portainer - docker compose/stacks - nginxproxymanager - Gateway IP with its web UI port - subdomain name and ssl.

  1. once ufw is up, docker apps running on ports that is not explicitly allowed is not accessible with the domain (reverse proxied). But once the firewall is down it is okay, or I can also open the ports but I don't want to do that.
  2. ufw denied ports are still accessible
  3. ufw enabled does not block ports that is not explicitly denied either

What is a way to solve it? Or even better, a firewall app that will work with docker?

digijay avatar
mx flag
There is a very exhaustive answer to this question on stackoverflow: https://stackoverflow.com/a/51741599 I hope this helps, otherwise let us know, please.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.