kulago
By:
kulago

Is it possible to create custom routing for private addresses?

October 13, 2017 177 views
Networking CentOS

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 1.1.1.0/24 via <private_ip_of_first_droplet>
The rule is added, but packets for network 1.1.1.0/24 still does not go through first droplet. Tcpdump sees nothing. Is it possible to configure such scheme?

Be the first one to answer this question.