I set up haproxy and a couple of servers behind it, all with private networking enabled. I want to shut down public access to the servers directly, so I configured haproxy to use the private IPs of the servers, which works.
What doesn’t work is shutting down the public network interface on the servers. If I do “ifconfig eth0 down”, the server stops responding to the haproxy.
Is this approach wrong? If it is, what’s the right way to block bypassing of my front end proxy?
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 Jim, <br> <br>Are you still seeing this? I can’t seem to reproduce it myself. Can you ping the private IPs from the haproxy instance?
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.