tinc
22 years agoSmall update.
Guus Sliepen [Sun, 22 Jul 2001 14:58:18 +0000 (14:58 +0000)]
Small update.

22 years agoDescribed problem in more detail.
Guus Sliepen [Sun, 22 Jul 2001 14:46:11 +0000 (14:46 +0000)]
Described problem in more detail.

22 years agoStarted writing a document about how daemons connect to each other.
Guus Sliepen [Sun, 22 Jul 2001 14:04:38 +0000 (14:04 +0000)]
Started writing a document about how daemons connect to each other.

22 years agoWoohoo! tinc now compiles, runs and actually *works* on Solaris!
Guus Sliepen [Sat, 21 Jul 2001 20:21:25 +0000 (20:21 +0000)]
Woohoo! tinc now compiles, runs and actually *works* on Solaris!
Tested on a SparcStation 20MP running Solaris 7. (Thanks, jiggel!)

22 years agoAlways close all sockets in terminate_connection().
Guus Sliepen [Sat, 21 Jul 2001 15:46:34 +0000 (15:46 +0000)]
Always close all sockets in terminate_connection().

22 years agoUpdated terminate_connection() so you can choose if DEL_HOSTs should be
Guus Sliepen [Sat, 21 Jul 2001 15:34:18 +0000 (15:34 +0000)]
Updated terminate_connection() so you can choose if DEL_HOSTs should be
sent or not.

22 years agoAdded purge_tree for connection_t's which are no longer in the connection,
Guus Sliepen [Fri, 20 Jul 2001 20:25:10 +0000 (20:25 +0000)]
Added purge_tree for connection_t's which are no longer in the connection,
active or id trees, but which may still be referenced. This tree is flushed
when it is safe, this replaces purge_connection_tree().

Also lots of bugfixes related to the new trees.

22 years agoRemove all unnecessary status.meta and status.active checks.
Guus Sliepen [Fri, 20 Jul 2001 13:54:19 +0000 (13:54 +0000)]
Remove all unnecessary status.meta and status.active checks.

22 years agoCorrectly use the active_tree.
Guus Sliepen [Thu, 19 Jul 2001 12:29:40 +0000 (12:29 +0000)]
Correctly use the active_tree.

22 years agoSplit connection list into two lists:
Guus Sliepen [Sun, 15 Jul 2001 18:07:31 +0000 (18:07 +0000)]
Split connection list into two lists:
 - one list to handle all incoming/outgoing TCP connections
 - another list to handle all UDP connections

This will prevent race conditions.

22 years agoCorrect inclusion of standard if_tun.h header file.
Guus Sliepen [Sun, 15 Jul 2001 14:21:12 +0000 (14:21 +0000)]
Correct inclusion of standard if_tun.h header file.

22 years agoDon't load table of verbose OpenSSL errormessages.
Guus Sliepen [Wed, 4 Jul 2001 08:43:32 +0000 (08:43 +0000)]
Don't load table of verbose OpenSSL errormessages.

22 years ago- Always use <openssl/include.h> instead of just <include.h>
Guus Sliepen [Wed, 4 Jul 2001 08:41:36 +0000 (08:41 +0000)]
- Always use <openssl/include.h> instead of just <include.h>
- Check if RAND_pseudo_bytes() exists, otherwise just use RAND_bytes()

22 years agoCheck for all potential duplicate entries in the id tree.
Guus Sliepen [Sun, 1 Jul 2001 21:42:13 +0000 (21:42 +0000)]
Check for all potential duplicate entries in the id tree.

22 years agoFix compiler warning.
Guus Sliepen [Sun, 1 Jul 2001 09:21:14 +0000 (09:21 +0000)]
Fix compiler warning.

22 years agoFix printf format bug.
Guus Sliepen [Sun, 1 Jul 2001 09:21:01 +0000 (09:21 +0000)]
Fix printf format bug.

22 years agoMore items marked as done.
Guus Sliepen [Sun, 1 Jul 2001 09:06:17 +0000 (09:06 +0000)]
More items marked as done.

22 years agoDutch translation updated.
Guus Sliepen [Fri, 29 Jun 2001 15:38:40 +0000 (15:38 +0000)]
Dutch translation updated.

22 years agoUpdate of RedHat build scripts.
Guus Sliepen [Fri, 29 Jun 2001 15:33:18 +0000 (15:33 +0000)]
Update of RedHat build scripts.

22 years agoIt appears that autogen.sh doesn't like es.po if it isn't mentioned in
Guus Sliepen [Fri, 29 Jun 2001 15:32:26 +0000 (15:32 +0000)]
It appears that autogen.sh doesn't like es.po if it isn't mentioned in
the makefile/configure scripts.

22 years agoCheck for dlopen in standard libraries first (needed for DEC OSF).
Guus Sliepen [Fri, 29 Jun 2001 14:15:46 +0000 (14:15 +0000)]
Check for dlopen in standard libraries first (needed for DEC OSF).

22 years agoFix gcc 3.0 warnings.
Guus Sliepen [Fri, 29 Jun 2001 13:09:55 +0000 (13:09 +0000)]
Fix gcc 3.0 warnings.

22 years agoLog error if two hosts connect with same IP/port tuple.
Guus Sliepen [Fri, 29 Jun 2001 13:09:32 +0000 (13:09 +0000)]
Log error if two hosts connect with same IP/port tuple.

22 years agoAlso remove po/Makefile.in.in, which is generated by autogen.sh.
Guus Sliepen [Fri, 29 Jun 2001 11:09:13 +0000 (11:09 +0000)]
Also remove po/Makefile.in.in, which is generated by autogen.sh.

22 years agoes.po revived.
Guus Sliepen [Fri, 29 Jun 2001 11:03:27 +0000 (11:03 +0000)]
es.po revived.

22 years agoExecute tinc-down BEFORE tap device is closed. This is a. more symmetric
Guus Sliepen [Fri, 29 Jun 2001 10:30:18 +0000 (10:30 +0000)]
Execute tinc-down BEFORE tap device is closed. This is a. more symmetric
(tinc-up is started after tap device is opened) and b. is needed for
tun/tap device, where the interface does not exist anymore after the
device file is closed.

22 years agoDon't build Spanish translation.
Guus Sliepen [Fri, 29 Jun 2001 10:27:57 +0000 (10:27 +0000)]
Don't build Spanish translation.

22 years agoABOUT-NLS is created by autogen.sh.
Guus Sliepen [Fri, 29 Jun 2001 10:27:33 +0000 (10:27 +0000)]
ABOUT-NLS is created by autogen.sh.

22 years agoSpanish translation removed. Nobody maintains it, and it is severely
Guus Sliepen [Fri, 29 Jun 2001 10:23:46 +0000 (10:23 +0000)]
Spanish translation removed. Nobody maintains it, and it is severely
outdated.

22 years agoSmall fix to make it compile again
Ivo Timmermans [Tue, 26 Jun 2001 22:00:57 +0000 (22:00 +0000)]
Small fix to make it compile again

22 years agoReinstated search for if_tun.h in kernel source tree, because apparently
Guus Sliepen [Thu, 21 Jun 2001 18:28:52 +0000 (18:28 +0000)]
Reinstated search for if_tun.h in kernel source tree, because apparently
/usr/include/linux does not always have the same contents as the include
files from the currently running kernel.

22 years agoRemove #warnings I used for debugging stuff.
Guus Sliepen [Thu, 21 Jun 2001 16:37:47 +0000 (16:37 +0000)]
Remove #warnings I used for debugging stuff.

22 years agoCheck for and add -ldl.
Guus Sliepen [Thu, 21 Jun 2001 16:37:05 +0000 (16:37 +0000)]
Check for and add -ldl.

22 years ago- Solaris compile fixes
Guus Sliepen [Thu, 21 Jun 2001 16:16:32 +0000 (16:16 +0000)]
- Solaris compile fixes
- Set mymac to broadcast MAC so that ifconfig hw ether <...> is really not
  needed anymore.
- Forwarding of indirect packets when in switch mode (because the kernel
  will not do it for us then).

22 years agoDon't include the debian/ dir in a release
Ivo Timmermans [Wed, 20 Jun 2001 21:32:40 +0000 (21:32 +0000)]
Don't include the debian/ dir in a release

22 years agoWoops - big bug in send_key_changed fixed.
Guus Sliepen [Sat, 9 Jun 2001 10:00:34 +0000 (10:00 +0000)]
Woops - big bug in send_key_changed fixed.

22 years agoOnly reset seconds_till_retry when we activate the outgoing connection.
Guus Sliepen [Fri, 8 Jun 2001 18:02:10 +0000 (18:02 +0000)]
Only reset seconds_till_retry when we activate the outgoing connection.

22 years agoChanged drastically because it didn't work correctly:
Guus Sliepen [Thu, 7 Jun 2001 07:51:04 +0000 (07:51 +0000)]
Changed drastically because it didn't work correctly:
- Don't cache the --with-openssl-* option arguments
- Only search for openssl/*.h, the openssl include files include other
  files only from an openssl/ directory too
- Set CPPFLAGS before AC_CHECK_HEADERS

22 years agoSave configure cache more often.
Guus Sliepen [Thu, 7 Jun 2001 07:48:11 +0000 (07:48 +0000)]
Save configure cache more often.

22 years agoFixes to make switching work between hosts that have no meta-connection.
Guus Sliepen [Wed, 6 Jun 2001 19:12:38 +0000 (19:12 +0000)]
Fixes to make switching work between hosts that have no meta-connection.

22 years agoLog and warn about duplicate subnet_add()'s for the same subnet.
Guus Sliepen [Wed, 6 Jun 2001 19:11:16 +0000 (19:11 +0000)]
Log and warn about duplicate subnet_add()'s for the same subnet.

22 years agoAdd missing? counting of total_socket_in.
Guus Sliepen [Tue, 5 Jun 2001 19:45:47 +0000 (19:45 +0000)]
Add missing? counting of total_socket_in.

22 years agoYou can now put an option "Mode" in tinc.conf, and choose from:
Guus Sliepen [Tue, 5 Jun 2001 19:39:54 +0000 (19:39 +0000)]
You can now put an option "Mode" in tinc.conf, and choose from:

- Mode = router (default, work like tinc has always worked)
- Mode = switch (work like a switch)
- Mode = hub    (work like a hub, broadcasting everything)

22 years agoFix bug where lookup_subnet_ipv4() could go into an infinite loop.
Guus Sliepen [Tue, 5 Jun 2001 18:07:14 +0000 (18:07 +0000)]
Fix bug where lookup_subnet_ipv4() could go into an infinite loop.

22 years ago- This oneliner removes the need for ifconfig tap? hw ether fe:fd:0:0:0:0
Guus Sliepen [Tue, 5 Jun 2001 16:31:59 +0000 (16:31 +0000)]
- This oneliner removes the need for ifconfig tap? hw ether fe:fd:0:0:0:0

22 years agoUpdated dutch translation.
Guus Sliepen [Tue, 5 Jun 2001 16:15:48 +0000 (16:15 +0000)]
Updated dutch translation.

22 years agoChanged some stuff to allow correct generation of po/Makefile after a
Guus Sliepen [Tue, 5 Jun 2001 16:13:41 +0000 (16:13 +0000)]
Changed some stuff to allow correct generation of po/Makefile after a
make cvs-clean.

22 years ago- tinc can now act as a switch or a hub too (as opposed to a router only)
Guus Sliepen [Tue, 5 Jun 2001 16:09:55 +0000 (16:09 +0000)]
- tinc can now act as a switch or a hub too (as opposed to a router only)
- cleaner initialisation of "UNKNOWN" and "MYSELF" names

22 years agoAdded proxy-arp support. No more ifconfig -arp needed. Works like a charm
Guus Sliepen [Mon, 4 Jun 2001 11:14:35 +0000 (11:14 +0000)]
Added proxy-arp support. No more ifconfig -arp needed. Works like a charm
under FreeBSD now :).

22 years agoFix subnet_lookup() for overlapping subnets. Needs rethinking.
Guus Sliepen [Fri, 1 Jun 2001 08:02:09 +0000 (08:02 +0000)]
Fix subnet_lookup() for overlapping subnets. Needs rethinking.

22 years agoMake sure Solaris is happy too.
Guus Sliepen [Mon, 28 May 2001 08:56:57 +0000 (08:56 +0000)]
Make sure Solaris is happy too.

22 years agoSmall fixes to allow correct compilation under FreeBSD (tested with 4.3)
Guus Sliepen [Mon, 28 May 2001 08:21:43 +0000 (08:21 +0000)]
Small fixes to allow correct compilation under FreeBSD (tested with 4.3)

22 years agoDon't distribute autogen.sh in a release
Ivo Timmermans [Sat, 26 May 2001 09:35:28 +0000 (09:35 +0000)]
Don't distribute autogen.sh in a release

22 years agoChanged version number to 1.0-cvs
Ivo Timmermans [Sat, 26 May 2001 09:35:00 +0000 (09:35 +0000)]
Changed version number to 1.0-cvs

22 years agoNew make target: `make release'
Ivo Timmermans [Sat, 26 May 2001 09:34:11 +0000 (09:34 +0000)]
New make target: `make release'

22 years agoFix sample configuration to show keys in PEM format and correct tapdevice. release-1.0pre4
Guus Sliepen [Fri, 25 May 2001 18:57:37 +0000 (18:57 +0000)]
Fix sample configuration to show keys in PEM format and correct tapdevice.

22 years agoDocuments are merged. Now we only need to check the ports and the TCPonly
Guus Sliepen [Fri, 25 May 2001 13:24:34 +0000 (13:24 +0000)]
Documents are merged. Now we only need to check the ports and the TCPonly
and IndirectData options.

22 years agoMerged PROTOCOL, NETWORK and SECURITY2 with the texinfo manual.
Guus Sliepen [Fri, 25 May 2001 12:45:37 +0000 (12:45 +0000)]
Merged PROTOCOL, NETWORK and SECURITY2 with the texinfo manual.

22 years agoTCPonly now works (in a relatively clean way too).
Guus Sliepen [Fri, 25 May 2001 11:54:28 +0000 (11:54 +0000)]
TCPonly now works (in a relatively clean way too).

22 years agoWith recent kernels the tun device file is located in /dev/net.
Guus Sliepen [Fri, 25 May 2001 10:08:11 +0000 (10:08 +0000)]
With recent kernels the tun device file is located in /dev/net.

22 years agoSmall corrections to the manuals.
Guus Sliepen [Fri, 25 May 2001 10:06:13 +0000 (10:06 +0000)]
Small corrections to the manuals.

22 years agoSmall fixes:
Guus Sliepen [Fri, 25 May 2001 08:36:11 +0000 (08:36 +0000)]
Small fixes:

- Fix compiler warnings (one was a real (but harmless) bug)
- Don't send PING packets if there is UDP traffic
- Correctly terminate strings containing salt for PING/PONG packets

22 years agoOnly send key_changed if it was previously requested.
Guus Sliepen [Thu, 24 May 2001 21:52:26 +0000 (21:52 +0000)]
Only send key_changed if it was previously requested.

22 years agoAll features for 1.0 are implemented now, we just have to check the
Guus Sliepen [Thu, 24 May 2001 21:32:30 +0000 (21:32 +0000)]
All features for 1.0 are implemented now, we just have to check the
FreeBSD and Solaris ports and merge some docs.

22 years agoSince this is incompatible with some earlier versions, PROT_CURRENT is
Guus Sliepen [Thu, 24 May 2001 21:30:36 +0000 (21:30 +0000)]
Since this is incompatible with some earlier versions, PROT_CURRENT is
increased.

22 years agoAdd randomness to PING/PONG packets to prevent crypto attacks on quiet
Guus Sliepen [Thu, 24 May 2001 21:29:09 +0000 (21:29 +0000)]
Add randomness to PING/PONG packets to prevent crypto attacks on quiet
tunnels.

22 years agoChanged URL from kernelnotes.org to linuxdoc.org.
Guus Sliepen [Thu, 24 May 2001 20:40:13 +0000 (20:40 +0000)]
Changed URL from kernelnotes.org to linuxdoc.org.

22 years agoMore revisions to the documentation:
Guus Sliepen [Thu, 24 May 2001 20:24:12 +0000 (20:24 +0000)]
More revisions to the documentation:

- Removed cruft
- Reordered some sections to make it more logical for the beginner
- Added small examples and hints about configuration files

22 years ago- Make sure correct information is supplied for both old kernels (with
Guus Sliepen [Sat, 19 May 2001 15:50:51 +0000 (15:50 +0000)]
- Make sure correct information is supplied for both old kernels (with
  ethertap) and for new kernels (with TUN/TAP driver).
- Revised example configuration and made it conform to latest (CVS) version of
  tinc.

22 years ago- s/ip_t/ipv4_t/g
Guus Sliepen [Mon, 7 May 2001 19:08:46 +0000 (19:08 +0000)]
- s/ip_t/ipv4_t/g
- Add "salt" to the beginning of UDP packets. Replaces length field which
  is not useful anyway.

22 years agoCorrectly cycle through ConnectTo variables.
Guus Sliepen [Fri, 4 May 2001 18:45:02 +0000 (18:45 +0000)]
Correctly cycle through ConnectTo variables.

23 years agoDepend on new ssl package and install alias for universal TUN/TAP module.
Guus Sliepen [Fri, 13 Apr 2001 10:30:04 +0000 (10:30 +0000)]
Depend on new ssl package and install alias for universal TUN/TAP module.

23 years agoCheck indirectdata option before forwarding certain requests.
Guus Sliepen [Tue, 13 Mar 2001 21:33:31 +0000 (21:33 +0000)]
Check indirectdata option before forwarding certain requests.

23 years agoIgnore alarm signals if we do not need to respond to them.
Guus Sliepen [Tue, 13 Mar 2001 21:32:24 +0000 (21:32 +0000)]
Ignore alarm signals if we do not need to respond to them.

23 years agoFixed bug in setup_signals() that would make tinc die when unexpected
Guus Sliepen [Tue, 13 Mar 2001 09:55:14 +0000 (09:55 +0000)]
Fixed bug in setup_signals() that would make tinc die when unexpected
signals were caught.

23 years agoFixed a race condition triggered by receive_meta() and the new
Guus Sliepen [Mon, 12 Mar 2001 23:58:19 +0000 (23:58 +0000)]
Fixed a race condition triggered by receive_meta() and the new
authentication scheme.

23 years agoAdded a description of what is going on in net.c and route.c, and how
Guus Sliepen [Sun, 4 Mar 2001 14:00:24 +0000 (14:00 +0000)]
Added a description of what is going on in net.c and route.c, and how
packets flow through tinc.

23 years agoUpdated translation.
Guus Sliepen [Sun, 4 Mar 2001 13:59:53 +0000 (13:59 +0000)]
Updated translation.

23 years ago- route.c is now used to determine destination
Guus Sliepen [Sun, 4 Mar 2001 13:59:32 +0000 (13:59 +0000)]
- route.c is now used to determine destination
- flags are removed, since they were not used at all. Use options instead.
- indirectdata works now, tcponly almost...
- made functions that don't return useful information void

23 years agoAdded explaination of our key exchange using RSA encryption.
Guus Sliepen [Fri, 2 Mar 2001 11:25:56 +0000 (11:25 +0000)]
Added explaination of our key exchange using RSA encryption.

23 years agoVarious small fixes.
Guus Sliepen [Thu, 1 Mar 2001 21:32:04 +0000 (21:32 +0000)]
Various small fixes.

23 years agoRemoved compiler warning.
Guus Sliepen [Tue, 27 Feb 2001 16:50:29 +0000 (16:50 +0000)]
Removed compiler warning.

23 years agoRemoved lots of compiler warnings.
Guus Sliepen [Tue, 27 Feb 2001 16:37:31 +0000 (16:37 +0000)]
Removed lots of compiler warnings.

23 years ago- Fixed Interface option (untested)
Guus Sliepen [Tue, 27 Feb 2001 16:17:04 +0000 (16:17 +0000)]
- Fixed Interface option (untested)
- Removed error handling for non-critical socket options
- Added TCP_NODELAY and IPTOS_LOWDELAY options for meta sockets.

23 years agoAuthentication done
Ivo Timmermans [Tue, 27 Feb 2001 16:15:14 +0000 (16:15 +0000)]
Authentication done

23 years agoDon't forget to reconnect if outgoing connection fails during
Guus Sliepen [Tue, 27 Feb 2001 15:33:39 +0000 (15:33 +0000)]
Don't forget to reconnect if outgoing connection fails during
authentication.

23 years ago- Make sure METAKEY is smaller than the modulus of the RSA key
Guus Sliepen [Mon, 26 Feb 2001 11:37:20 +0000 (11:37 +0000)]
- Make sure METAKEY is smaller than the modulus of the RSA key
- Get symmetric key from the least significant bytes of the RSA message

23 years agoAdded process.c to the translated files.
Guus Sliepen [Sun, 25 Feb 2001 20:17:46 +0000 (20:17 +0000)]
Added process.c to the translated files.

23 years agoImplemented new authentication scheme from doc/SECURITY2.
Guus Sliepen [Sun, 25 Feb 2001 19:09:45 +0000 (19:09 +0000)]
Implemented new authentication scheme from doc/SECURITY2.

23 years agoEncrypt network packets in CBC mode instead of CFB mode.
Guus Sliepen [Sun, 25 Feb 2001 16:34:19 +0000 (16:34 +0000)]
Encrypt network packets in CBC mode instead of CFB mode.
(This breaks compatibility with all previous versions!)

23 years agoCopy packets before putting them in the queue.
Guus Sliepen [Sun, 25 Feb 2001 16:04:00 +0000 (16:04 +0000)]
Copy packets before putting them in the queue.

23 years agoFree node->data and node, not node->data twice.
Guus Sliepen [Sun, 25 Feb 2001 15:34:50 +0000 (15:34 +0000)]
Free node->data and node, not node->data twice.

23 years agoAdd missing \n.
Guus Sliepen [Sun, 25 Feb 2001 14:51:42 +0000 (14:51 +0000)]
Add missing \n.

23 years agoCorrected check for errors after read() calls.
Guus Sliepen [Sun, 25 Feb 2001 11:09:29 +0000 (11:09 +0000)]
Corrected check for errors after read() calls.

23 years agoImportant bugfix in avl_insert_before() and avl_insert_after()
Wessel Dankers [Tue, 20 Feb 2001 21:53:18 +0000 (21:53 +0000)]
Important bugfix in avl_insert_before() and avl_insert_after()

23 years agotinc_TUNTAP now substitutes the values outside the AC_CACHE_CHECK
Ivo Timmermans [Sun, 18 Feb 2001 02:13:26 +0000 (02:13 +0000)]
tinc_TUNTAP now substitutes the values outside the AC_CACHE_CHECK
block.  configure should now correctly set HAVE_TUNTAP.

23 years agoAdded description of the proposed new authentication scheme.
Guus Sliepen [Tue, 13 Feb 2001 09:54:29 +0000 (09:54 +0000)]
Added description of the proposed new authentication scheme.

23 years agoMore files to ignore in CVS
Ivo Timmermans [Sun, 11 Feb 2001 11:55:28 +0000 (11:55 +0000)]
More files to ignore in CVS

23 years ago- Updated CVS_CREATED to remove intl/ directory and some other
Guus Sliepen [Sun, 11 Feb 2001 11:50:09 +0000 (11:50 +0000)]
- Updated CVS_CREATED to remove intl/ directory and some other
  autogenerated files.
- Checked if all INCLUDES/LIBS/etc directives inherit the global variables.

23 years agoIgnore file for src/
Guus Sliepen [Sun, 11 Feb 2001 11:46:14 +0000 (11:46 +0000)]
Ignore file for src/