Report this

What is the reason for this report?

Static Routing Between Droplet

Posted on October 25, 2018

Hallo Team,

Yesterday i build lxd under droplet, let’s say “A”, and i want to access that lxd from other droplet let’s say “B”. Network Example : Droplet A have private ip 10.10.10.1, and lxd network have 11.12.13.0/24, i don’t have issue if want access from host to lxd. Droplet B have private ip 10.20.20.1, and i want access lxd on droplet A from this host. The question is, i already add static routing in droplet B with rule destination 11.12.13.0/24 via 10.10.10.1 and set net.ipv4.ip_forward to 1 in both host, but i still can’t access lxd host from droplet B, why ? i’m miss something,… or DO have some firewall to limit the access between droplet.

Please help and advice.



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.

Heya,

You must configure both the LXD container’s networking and the host machine’s routing settings.

On Droplet A, make sure that the net.ipv4.ip_forward is also set to 1, and configure the LXD container’s network settings.

On Droplet B, ensure that you have added the correct static route using the private IP address of Droplet A (10.10.10.1) as the gateway for the LXD network.

If you have followed these steps and you are still unable to access your LXD container, please ensure that there are no firewalls on Droplet A or Droplet B that are blocking the traffic. Additionally, verify that the iptables rules are properly set up to allow the traffic between these droplets.

For more information on LXD configuration and usage on DigitalOcean, refer to this LXD guide.

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.