linux ip command and routing

2011-01-06 Thread Perry Couprie
Hi, I have a routing problem. When i start tinc it creates the following route in the main routing table. 192.168.2.0/24 dev nb003004 proto kernel scope link src 192.168.2.8 The problem is that i want to use extra routing tables for each tinc vpn. When i set the netmask for the tinc

Re: linux ip command and routing

2011-01-06 Thread Cédric Lemarchand
Hi, I am not sure to exactly understand your problem, but, if you want to add a route to a remote subnet owned by tinc, you could try something like this : ip r a 192.168.2.0/24 dev nb003004 This will send all traffic destined to 192.168.2.0/24 via

Re: linux ip command and routing

2011-01-06 Thread ZioPRoTo (Saverio Proto)
But how can i add the routing for the tinc device to company10703004 routing table. you need to set up some policy with ip rule to make the desired traffic match that extra table example: ip rule add to 192.168.2.0/24 table company10703004 read the manual for more complex examples. Saverio

Re: linux ip command and routing

2011-01-06 Thread Guus Sliepen
On Thu, Jan 06, 2011 at 09:11:04PM +0100, Perry Couprie wrote: On 01/06/2011 01:48 PM, ZioPRoTo (Saverio Proto) wrote: But how can i add the routing for the tinc device to company10703004 routing table. you need to set up some policy with ip rule to make the desired traffic match that extra