Routes are not added automatically

Ricardo Belin Ricardo.Belin at sewan.fr
Wed May 20 18:58:23 CEST 2009


Hi,

Being a beginner with Tinc I browsed the mailing list archive in order 
to see if other people were experiencing the same problems as I was. And 
there is.
But the answers given to them never actually seemed right to me (at 
least regarding what it is said on tinc's website).

My problem is that in order to run a simple VPN between two machines I 
had to manually add the "route add -net <ip>/24 $INTERFACE" statement on 
hosts' tinc-up files.
I came accross a lot of messages in the archive saying that tinc doesn't 
handle routing and that it's my job to configure the routes manually.

But according to the website :
1) http://www.tinc-vpn.org/documentation/tinc_3.html#SEC37

    "An example 'tinc-up' script:

      	

    #!/bin/sh
    ifconfig $INTERFACE 192.168.1.1 netmask 255.255.0.0
            

    This script gives the interface an IP address and a netmask. The
    kernel _will also automatically add a route to this interface_ , so
    normally you _don't need to add route commands_ to the 'tinc-up'
    script. The kernel will also bring the interface up after this
    command. The netmask is the mask of the /entire/ VPN network, not
    just your own subnet."


2) http://www.tinc-vpn.org/documentation/tinc_3.html#SEC42
Same thing here: none of the example configuration has  an "add route" 
statement.

Is the site wrong? Am I missing something?

Best regards,

-- 
RB


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.tinc-vpn.org/pipermail/tinc/attachments/20090520/f7dbdc33/attachment.htm 


More information about the tinc mailing list