Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi there!
I have Flask (port 5000) and Angular (port 80) running on my droplet. I’d like to allow connections to my Flask backend only from the Angular app. I configure my firewall rules using ufw. From what I understand, the commands below should do the trick:
sudo ufw deny 5000/tcp
sudo ufw allow from 159.203.105.68 to any port 5000 proto tcp
Unfortunately they doesn’t work and I end up with the Flask app being inaccessible from any IP. Is there any other way to achieve my goal? Perhaps other ufw rules?
WildcatMedia
jeffs
0621335d663b4b699a60eb27e28153
accesstrax
Dwight Trumbower
admin
yimprogramming
samunyi90
1d6ce141ab5444dfb1ea2dd29cf4b1
Matt Fricker
joel9b158e40551b15093f213f