On Tue, Mar 26, 2013 at 11:45:48AM +0000, Bartsch, Rene wrote:
> 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 :-( ).
I hope they are not all changing at the same instant...
> 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.
Yes, that is indeed one of the things I will implement at some point (although
the host-up script you use is doing the job quite well). In tinc version
1.1pre4 and later complement this with the AutoConnect option and by
automatically distributing the public keys of nodes, if you use the
ExperimentalProtocol option.
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL:
<http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20130326/c5c9e645/attachment.pgp>