By efabiancj
Hello, I have ufw enabled, how to make it accept connections for a postgres server (5432) on the internet, only to the ip 190.152.109.234, I have already tried this: sudo ufw allow from 190.152.109.234 port 5432 sudo ufw allow from 190.152.109.234/32 port 5432 sudo ufw allow proto tcp from 190.152.109.234 port 5432
but nothing works, what could be the cause?
regards…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @efabiancj,
Before I can provide you with some examples, I’m not sure I entirely understand, please correct me if I’m wrong. So you have two droplets one of which is a Postgres droplet. You want to allow connections from the droplet that doesn’t have Postgres to the one that does only from the sad IP address, is that correct?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.