By PanCake
I’m using CoreOS 1010.5.0 (stable) on one DigitalOcean droplet. I have an http proxy connection setup, so that when I connect to the “outside” world, the external IP shown is not the one I have (as external IP from DigitalOcean). So the proxy works, as it should.
What I’d like to do now, is to create one (or more) droplets, and be able to share my external proxy connection (from the 1st droplet) to my new droplets, using the private networking feature from DigitalOcean. Any suggestions on how to achieve this?
The problem: My proxy supplier only supports 1 “access IP”, which means, I can use this proxy only from this first droplet I created. That’s why I need to find some way to “share” this proxy connection to my new droplets.
My guess is, I would need to create some iptables rules and activate NAT. But then, on the 1st droplet, I need to setup a program that would “listen” to incoming connections from the other droplets, and redirect (force) them through the proxy. Maybe something like “TinyProxy” might help? Or maybe HAproxy can do this?
Note: I’m using docker, so I’m pretty open to any suggestions!
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!
If you only need to proxy http/https content then it might be easier to install a proxy server of your own on your first droplet. If it is set up already to proxy it’s own web requests through your outside proxy service you can then set your other droplets to use your first droplet as their proxy server.
I found this Docker container that might fit the bill:
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.