In the prepare_net function it appends flags and params from the uci config to
the temporary tinc.conf for each net. These values are appended to the
config file on each /etc/init.d/tinc restart and the file grows. By
removing all old temporary config this problem is solved. Then we should
also remove the temporary config for a net which is stopped to free up
some bytes in memory.
Contribution from Manuel Munz <freifunk@somakoma.de>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@35053 3c298f89-4303-0410-b956-a3cf2f4a3e73
Author: Moritz Warning <moritzwarning@web.de>
This patch updates that list to tinc 0.18 (current version).
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31837 3c298f89-4303-0410-b956-a3cf2f4a3e73
With this commit configuration via uci, similiar to the one used for
OpenVPN, will be added to tinc.
Most of the parameters are working just as described in the official
manpages of tincd and tinc.conf as provided by its developer.
The only exceptions are 'disabled' which if set to 1 will make the
init script completely ignore this tinc network and/or tinc host
and 'generate_keys' which if set to 1 will check whether
a key pair is already present for the given tinc network and if not will
generate them with the key size of "key_size" (default if not present:
2048) - this reduces the "effort" of setting up a tinc VPN on a router
to just providing the right uci config file with no need of creating
custom initialization scripts for for instance the key generation.
Furthermore, similiar to the OpenVPN configuration, also tinc configs
of its native format can be used. They just need to be placed in
/etc/tinc/NETNAME. The init scripts will always copy the content of
/etc/tinc/ to /tmp first and will append any parameters provided in
/etc/config/tinc afterwards (the user needs to take care to not specify
non-list parameters in both uci and native config).
(Trivial note: not working URLs of old repositories have been removed from Makefile for downloading sources)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29137 3c298f89-4303-0410-b956-a3cf2f4a3e73