crashing on receiving connection

Eduard Bloch edi at gmx.de
Wed Mar 7 18:32:30 CET 2001


#include <hallo.h>
Guus Sliepen wrote on Wed Mar 07, 2001 um 03:31:24PM:

> > Running step-for-step, I saw it crashing in the following line in
> > protocol.c:
> > 
> >   /* Encrypt the random data */
> >     
> >   if(RSA_public_encrypt(len, cl->hischallenge, buffer, cl->rsa_key, RSA_NO_PADDING) != len)	/* NO_PADDING because the message size equals the RSA key size and it is totally random */
> 
> Are you sure you generated the public key correctly? Could you send a copy of
> the host configuration file of zomb so we can check?

Of course, mom.

---
# Sample tinc configuration file

# This is a comment.
# Spaces and tabs are eliminated.
# The = sign isn't strictly necessary any longer, though you may want
# to leave it in as it improves readability :)
# Variable names are treated case insensitive.

Name = zomb

# The internet host to connect with
# comment these out to make yourself a listen-only connection
# You may use an IP address or its FQDN.

#ConnectTo = home

# Connect to which port of the `ConnectTo' host

# It is advised that you only connect to ports that are < 1024,
# because some malicious (non-root) user may run a fake tincd on ports
# above 1024.
# The default port is 655, the port that has been assigned to tinc
# by the IANA. If you want tincd to listen on any other port than 655,
# you can use ListenPort for the `server', and ConnectPort for the
# `client'.

# You may use the prefixes 0x or 0 to denote a hexadecimal or octal
# number respectively.
#ConnectPort = 0x300
#ConnectPort = 655

# Listen on which port
#ListenPort = 655
#

# My own VPN IP
# You may use the /nn notation to indicate the number of bits used for
# the mask, /8 is equivalent to the netmask 255.0.0.0 (the first 8
# bits are set to 1).

InterfaceIP = 0.0.0.0/0

# VPN Netmask
# You'll need this option if you use the Debian or Redhat init
# scripts.  Put in here a netmask that covers your entire VPN network;
# it is used to set routes from the init script, tinc itself ignores
# it.
# VpnMask = 255.255.255.0

# Which local file?
# Default is /dev/tap0
TapDevice = /dev/tap0

IndirectData = yes

PrivateKey = 3D22D154529E47366464F303DA67504CDDE2B331C3C8F8341A4C83CCC6075B14F50B1768A97E9B2EC34E868F2206FC1AF77BFE9DD42FEA8A02507C27B4F63ACAF1991FE746CCBA73F081433F17F1C3D409C6077E02EB55271428F36C0C970034BC3807517A171A034D27DC5701C3773C1959B593C516BA942134DFAF17600547
---
The key is changed so it won't help you on cracking my box ;)

--- /etc/tinc/vpn/hosts/zomb.pub ---

C4C19BC56E77D122390864A94F423078A8BCA4E15841BB1204412412620469D317CCD6581ABA1BFCA1DF2D9B0AA57F169BE0DC7B867B5BF05B9AB1BB0A8778CB16B6965274233B5B40D8A5BFAF5522B80BFA83A4240A582765CBC813C1836962502384FE18561431F9996CE755BA636CA363378BE5677FAA6E9F21AF88ABC3E7
---

The keys are generated using "tincd -K" and pasted to mentioned files.

MfG,
Eduard.
-- 
====================================================================
Eduard Bloch <blade at debian.org>; HP: http://eduard.bloch.com/edecosi
0xEDF008C5(GnuPG): E6EB 98E2 B885 8FF0 6C04 5C1D E106 481E EDF0 08C5
**
Dass Geschwindigkeiten dimensionslos sind, hat lange Tradition und ist kein
Trick von Theoretikern. In Grimms Rotkaeppchen ist die Geschwindigkeit eines
Spaziergaengers 1, daher liegt Grossmutters Haus eine halbe Stunde vom Dorf.
(Norbert Dragon in de.sci.physik)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20010307/f9644dda/attachment.pgp


More information about the Tinc mailing list