Is it possible to create custom routing for private addresses?

Posted October 13, 2017 1.5k views

I have 2 droplets in one region. Both of them have private ip addresses and they can reach each other by those addresses. I need one droplet to act as a router for second droplet for specific network ranges. First droplet in configured as a simple router.
For example I add custom route on second droplet
ip ro add via <private_ip_of_first_droplet>
The rule is added, but packets for network still does not go through first droplet. Tcpdump sees nothing. Is it possible to configure such scheme?

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!