Daily Shaarli

All links of one day in a single page.

June 24, 2023

What is the best practice of docker + ufw under Ubuntu | by Pita Pun | Medium

If you have modified your server according to the current solution that we find on the internet, please rollback these changes first, including:

How To Use Docker with a UFW Firewall

If you set up a basic UFW firewall to deny by default and allow HTTP and SSH, this will appear secure—but it will not block Docker from starting containers bound to other ports. This issue can be hard to catch, as UFW and Docker are separate systems. UFW is unknowingly lying to you and will not show open ports from Docker containers.