You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UFW + Docker incompatibility and secutity risks #3
I just wanted to point out that UFW and Docker don't get along.
It implies Docker opening ports that were initially closed by UFW, thus putting the VPS at risk.
From the official Docker documentation:
If you use ufw or firewalld to manage firewall settings, be aware that when you expose container ports using Docker, these ports bypass your firewall rules. For more information, refer to Docker and ufw.
do not use default address binding when mapping ports, but instead specify the loopback address, to keep it only available to the local network of the VPS (e.g., - "127.0.0.1:5432:5432")
Activity
RemyMachado commentedon Mar 27, 2025
Well, you mentioned it in another video, so I'm confused why the
compose.base.yamlisn't following your own advice.https://youtu.be/F-9KWQByeU0?si=LmSXHWTJBJ2roKxH&t=995