Automatic exchange of dynamic node-IPs between nodes

Bartsch, Rene renne.bartsch at gmail.com
Tue Mar 26 12:45:48 CET 2013


Hi,

I'm new to Tinc, so a "Hello" to all! :-)

In my setup one master node has a static public IP. All other nodes have dynamic public IPs changing every 24 hours (and yes, in Germany even Global IPv6 Unicast Prefixes are dynamic on DSL/Cable sockets :-( ).

To distribute the dynamic node-IPs to all other nodes, the following "host-up" script is used:

------------------------------------------------------------- snip --------------------------------------------------------------

#!/bin/bash

FILE="/etc/tinc/$NETNAME/hosts/$NODE"
ADDRESS="Address = $REMOTEADDRESS $REMOTEPORT"

if grep -q Address $FILE; then
    /bin/sed s:'^Address.*=.*$':"$ADDRESS": -i $FILE
else
    echo $ADDRESS >> $FILE
fi

------------------------------------------------------------- snap 
--------------------------------------------------------------


Please implement such a function directly into the Tinc code! Maybe even with distributed tables without the need of a master with a static IP.

Best regards,

Renne

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20130326/26f6503d/attachment.html>


More information about the tinc-devel mailing list