sudo ufw deny 3306
Category: Self-Hosting
sudo ufw deny 3306
Block MySQL's default port from external access — keep databases off the public internet
Blocks MySQL's port from the internet. Databases should never be publicly accessible — apps connect to them locally or over a private network.