Report this

What is the reason for this report?

Send all traffic through single IP

Posted on July 29, 2014

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.