Tinc tunnel between two subnets
Etienne Dechamps
etienne at edechamps.fr
Tue Jul 8 10:44:35 CEST 2014
On 07/08/2014 02:55 AM, Zia Syed wrote:
> I'm trying to setup tinc tunnel between my work and home linux machines
> as shown here http://cl.ly/image/1H1R2X2D403X
>
> I am able to setup tinc session between A and B and I can ping them. But
> I can't ping C or D from B, or A respectively.
>
> Home network 192.168.1.0
> Work network 10.20.50.0
> tinc tunnel is 15.0.0.x.
>
> Do I need to run tinc on C and D as well? Or Do i need to manually
> define the routes?
When using tinc in router mode, tinc needs to be aware of which subnets
are to be routed through a specific node so that it knows which node to
send packets to. This means that if you want A (and C) to access D, you
need to declare the 10.20.50.0/24 subnet on B. Likewise, if you want B
(and D) to access C, you need to declare the 192.168.1.0/24 subnet on A.
Keep in mind, though, that this is only for tinc's internal routing
purposes. You still need to manually create the routes at the OS level
so that the OS knows it needs to send the packets down tinc's virtual
interface. In practice that means that B needs to have a route for
192.168.1.0/24 and A needs to have a route for 10.20.50.0/24.
--
Etienne Dechamps
More information about the tinc
mailing list