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 <[email protected]>
signature.asc
Description: Digital signature
_______________________________________________ tinc mailing list [email protected] http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
