I need to use one of the droplets as a public ip that all backend scripts (on other droplets) connect through so the client can open one ip on their firewall but I can farm out the work to various servers.
droplet1/public IP droplet 2 connects private->droplet1->outbound to internet.
Is this possible and or easy to do in any way? Basically share a single outbound IP
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!
Without know more about your actual use case, it’s hard to get more specific. Here are some tutorials that should point you in the right direction. These show you how to set up private networking and isolate a server:
How To Set Up And Use DigitalOcean Private Networking
How To Isolate Servers Within A Private Network Using IPTables
After that, it really depends on how you need the servers to communicate. If you simply want to pass HTTP requests onto the droplet on the private network, you might want to look into using Nginx as a simple “load balancer.”
I don t understand very well the question, bit i think you need pat+nat. With nat you can share outbound your public ip (all machine behind tour router have the same IP outgoing.) pat you can translate port incoming
If you want to direct all traffic through the one machine, set it allow ip.forwarding and then set routes on them to use the one server as the gateway for certain destinations. You will have to adjust firewalls to match.
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.