dynamic-ip clients?

Guus Sliepen guus at tinc-vpn.org
Sun Mar 22 21:07:06 CET 2009


On Sat, Mar 21, 2009 at 04:05:28PM +0100, lizard wrote:

> hey - cool, every node has the ip-address if every other node.
> so i added a hostfile of 2 dynamic-ip clients, left out the
> Address-entry and added a a connectTo line in tinc.conf
> but ...
> 
>   No address specified for storemuc
> 
> now, is it possible to connect dynamic clients? the ip-address is known,
> i see it in the debug-log. if not, whishlist ... pahaps Address=? or
> somethink like that, so the tinc can use the real-ip it got from other
> nodes?

Well, you could create a host-up script (in the same directory as the tinc-up
script) containing the following:

#!/bin/sh
file=/etc/tinc/$NETNAME/hosts/$NODE
grep -Fq "Address = $REMOTEADDRESS" $file && exit 0
echo "Address = $REMOTEADDRESS" >> $file

If a node becomes reachable, this script will check if the address which that
node currently has is already in the host config file, if not it will add it.

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://www.tinc-vpn.org/pipermail/tinc/attachments/20090322/a72389db/attachment.pgp 


More information about the tinc mailing list