Article delegate-en/4046 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] SSL with Socks
05 Aug 2008 08:15:06 GMT Andre <pzyhqbdyi-ry4zqcjkjzvr.ml@ml.delegate.org>


Hey.

In the long run want to use a ssl connection to a delegate sock proxy. 
I'm currently testing the correct establishment of a connection to a 
delegate proxy with ssl support. The connection will be established by 
using the python script below.

--------------------------------------------------------------------
#!/bin/python

import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("localhost", 1081))
ssl_sock = socket.ssl(s)

print repr(ssl_sock.server())
print repr(ssl_sock.issuer())
--------------------------------------------------------------------

Starting delegate is done like this, which will result in using the 
default certificate
delegated -P1081 SERVER=socks STLS=fcl -v

If I do this while running the pre-compiled linux version it seems to 
work, since I get a
08/05 09:53:24.05 [10414] 1+1: OK: SSL/cl 0.00 0.00/1.00 0.00 0.03 = 0.03
which I presume to be a notification of a successfull ssl-connection 
establishment. Is this indeed the case?

If I compile delegate from source, which does not result in any errors, 
starting delegate as above gives me the following:
08/05 09:53:27.12 [10414] 1+1: BatckTrace: 3351B / 3.1s
--ABORT-- Subject: DeleGate-Report: SIGSEGV
--ABORT-- From: [1000]@reno
--ABORT-- To: eeknay@reno (DeleGate ADMIN)
--ABORT-- Reply-To: bugs@delegate.org
--ABORT-- Date: Tue, 05 Aug 2008 09:53:24 +0100
--ABORT-- Message-Id: <10414.1217922804.1000@reno..>
--ABORT-- Content-Type: text/plain
--ABORT--
--ABORT-- PLEASE FORWARD THIS MESSAGE TO <bugs@delegate.org>.
--ABORT-- IT WILL BE HELPFUL FOR DEBUGGING.
--ABORT--
--ABORT-- Subject: DeleGate-Report: SIGSEGV
--ABORT-- From: [1000]@reno
--ABORT-- To: eeknay@reno (DeleGate ADMIN)
--ABORT-- Reply-To: bugs@delegate.org
--ABORT-- Date: Tue, 05 Aug 2008 09:53:24 +0100
--ABORT-- Message-Id: <10414.1217922804.1000@reno..>
--ABORT-- Content-Type: text/plain
--ABORT-- Event: SIGSEGV
--ABORT-- Version: DeleGate/9.7.7 (November 12, 2007) 
(Linux/2.6.24-19-generic)
--ABORT-- Host: reno
--ABORT-- Owner: uid=1000/1000, gid=1000/1000
--ABORT-- Started: Tue, 05 Aug 2008 09:53:16 +0100
--ABORT-- Pid: 10414
--ABORT-- Cwd: /home/eeknay/Desktop/delegate9-latest/delegate9.7.7
--ABORT-- Load: 7.50 (15.0 3.0 1.0)
--ABORT-- Stack: BFD84000 000000/X
--ABORT--
--ABORT-- Client-Proto: socks
--ABORT-- Client-Host: 127.0.0.1:54302
--ABORT--
--ABORT--
--ABORT-- --iLog--begin
--ABORT-- ppid=9389
--ABORT-- 53:16.978 [10401] delegated.cc:5461 --- DO_STARTUP
--ABORT-- 53:16.978 [10401] delegated.cc:5487 --- DO_INITIALIZE
--ABORT-- 53:16.978 [10401] delegated.cc:5830 --- _main START
--ABORT-- 53:16.978 [10401] filter.cc:436 --- [-1] command PATH: 
/home/eeknay/Desktop/delegate9-latest/delegate9.7.7/./src/delegated -> 
/home/eeknay/Desktop/delegate9-latest/delegate9.7.7/./src/delegated
--ABORT-- 53:16.979 [10401] delegated.cc:5917 --- _main ConnInit() DONE
--ABORT-- 53:16.979 [10401] delegated.cc:5924 --- _main fromInetd()=0
--ABORT-- 53:16.979 [10401] filter.cc:436 --- [2] command PATH: 
/home/eeknay/Desktop/delegate9-latest/delegate9.7.7/./src/delegated -> 
/home/eeknay/Desktop/delegate9-latest/delegate9.7.7/./src/delegated
--ABORT-- 53:16.980 [10401] delegated.cc:3234 --- _main scan_HOSTS0() DONE
--ABORT-- 53:16.980 [10401] delegated.cc:3239 --- _main 
scan_HOSTSLISTS() DONE
--ABORT-- 53:16.980 [10401] inets.cc:3807 --- testing resolver[SYS] with 
'WWW.DeleGate.ORG'
--ABORT-- 53:16.983 [10401] inets.cc:3987 --- export RES_ORDER=CFD
--ABORT-- 53:16.983 [10401] delegated.cc:3250 --- _main init_resolv() DONE
--ABORT-- 53:16.984 [10401] dl.cc:181 --- dl_library(z)...
--ABORT-- 53:16.985 [10401] dl.cc:243 --- [z] 0 dglibz.so
--ABORT-- 53:16.985 [10401] dl.cc:243 --- [z] 0 libz.so.0.9.8
--ABORT-- 53:16.985 [10401] dl.cc:243 --- [z] 0 libz.so
--ABORT-- 53:16.985 [10401] dl.cc:243 --- [z] 83921D0 /usr/lib/libz.so.1
--ABORT-- 53:16.986 [10401] dl.cc:181 --- dl_library(crypto)...
--ABORT-- 53:16.986 [10401] dl.cc:243 --- [crypto] 0 dglibcrypto.so
--ABORT-- 53:16.987 [10401] dl.cc:243 --- [crypto] 83925D0 
/usr/lib/libcrypto.so.0.9.8
--ABORT-- 53:16.987 [10401] dl.cc:181 --- dl_library(ssl)...
--ABORT-- 53:16.987 [10401] dl.cc:243 --- [ssl] 0 dglibssl.so
--ABORT-- 53:16.988 [10401] dl.cc:243 --- [ssl] 83929A8 
/usr/lib/libssl.so.0.9.8
--ABORT-- --iLog--end
--ABORT--
--ABORT-- --AbortLog--begin
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: REMITTABLE = socks,tcprelay
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: ADMIN=eeknay@reno 
protocol=socks(specialist)
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: #### CACHE DISABLED #### Cache 
directory seems not exist: /home/eeknay/delegate/cache
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: MOUNT[0]X[2] /-/builtin/icons/* 
= default
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: MOUNT[1]X[3] /-/* = 
forbidden,from=!.RELIABLE,default
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: MOUNT[2]X[0] /-* = default
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: MOUNT[3]X[1] /=* = default
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: Stay open PIDFILE for accept() 
lock[fd=10]
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: 
StickyReport[11,12]127.0.0.127:65535><127.0.0.127:65535 110592/110592 
110000/00000X
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: env[22] 
LIBPATH=.;/home/eeknay/Desktop/delegate9-latest/delegate9.7.7;/home/eeknay/delegate/lib;/home/eeknay/Desktop/delegate9-latest/delegate9.7.7/./src;/home/eeknay/delegate/etc
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: env[24] RESOLV=cache,file,dns
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: arg[2] SERVER=socks
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: arg[3] STLS=fcl
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: DELEGATE_Modified[1]: 489806ec 
1217922796
--ABORT-- 08/05 09:53:16.00 [10401] 0+0: --INITIALIZATION 
DONE-08080509+0100: 9.7.7 on Linux/2.6.24-19-generic--
--ABORT-- 08/05 09:53:24.02 [10414] 1+0: -- Fork(SequentialServer): 
10401 -> 10414
--ABORT-- 08/05 09:53:24.02 [10414] 1+1: (0) accepted [29] 
-@[127.0.0.1]localhost:54302 (0.002s)(1)
--ABORT-- 08/05 09:53:24.02 [10414] 1+1: PATH: 
socks://-:1080!localhost:1081!localhost:54302!anonymous@localhost;1217922804
--ABORT-- 08/05 09:53:24.02 [10414] 1+1: # SSL record head[80 74  1  3  
1] SSL2 8?/118
--ABORT-- 08/05 09:53:24.02 [10414] 1+1: isinSSL ? [80] from client
--ABORT-- 08/05 09:53:24.02 [10414] 1+1: SSL Hello?5 [80 116 1 3 1]
--ABORT-- 08/05 09:53:24.02 [10414] 1+1: gethostbyname(-) unknown[0.00s]
--ABORT-- 08/05 09:53:24.02 [10414] 1+1: ## SSLway B7B76B90 loadSession 
0.000057 (0 0) / -1
--ABORT-- 08/05 09:53:24.03 [10414] 1+1: ## SSLway ## 0.010185 
sescache[0] HIT=0 sR=0 cR=1
--ABORT-- 08/05 09:53:24.03 [10414] 1+1: ## SSLway FCL S-C:0/0 C-S:0/0
--ABORT-- 08/05 09:53:24 [10414]-P1081 ####! EMERGENCY STOP !#### 
[10414.B7B76B90]0 0/1
--ABORT-- 08/05 09:53:24.04 [10414] 1+1: ####! EMERGENCY STOP !#### 
[10414.B7B76B90]0 0/1
--ABORT-- 08/05 09:53:24 [10414]-P1081 #### setStopService 
[/home/eeknay/delegate/adm/shutout/127.0.0.1]
--ABORT-- 08/05 09:53:24.04 [10414] 1+1: #### setStopService 
[/home/eeknay/delegate/adm/shutout/127.0.0.1]
--ABORT-- --AbortLog--end
--ABORT--
--ABORT-- --BackTrace--begin
--ABORT-- [10416] ## 0.000 X target
--ABORT-- [10414] ## 0.012 A caller, poll [target=10416 DBX=10417]
--ABORT-- Attaching to program: 
/home/eeknay/Desktop/delegate9-latest/delegate9.7.7/src/delegated, 
process 10416
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libutil.so.1...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libutil.so.1
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
--ABORT-- [Thread debugging using libthread_db enabled]
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libc.so.6
--ABORT-- Reading symbols from /lib/ld-linux.so.2...done.
--ABORT-- Loaded symbols for /lib/ld-linux.so.2
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
--ABORT-- Reading symbols from /lib/libnss_mdns4_minimal.so.2...done.
--ABORT-- Loaded symbols for /lib/libnss_mdns4_minimal.so.2
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
--ABORT-- Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done.
--ABORT-- Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
--ABORT-- Reading symbols from /usr/lib/libz.so.1...done.
--ABORT-- Loaded symbols for /usr/lib/libz.so.1
--ABORT-- Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.
--ABORT-- Loaded symbols for /usr/lib/libcrypto.so.0.9.8
--ABORT-- Reading symbols from /usr/lib/libssl.so.0.9.8...done.
--ABORT-- Loaded symbols for /usr/lib/libssl.so.0.9.8
--ABORT-- Reading symbols from /lib/libgcc_s.so.1...done.
--ABORT-- Loaded symbols for /lib/libgcc_s.so.1
--ABORT-- 0xb7ef3410 in __kernel_vsyscall ()
--ABORT-- (gdb) #0  0xb7ef3410 in __kernel_vsyscall ()
--ABORT-- #1  0xb7e21c07 in poll () from /lib/tls/i686/cmov/libc.so.6
--ABORT-- #2  0x082aaef0 in PollIn1 ()
--ABORT-- #3  0x082679b9 in PollIn ()
--ABORT-- #4  0x0807cb37 in putBackTrace ()
--ABORT-- #5  0x0807d7be in notify_ADMINX ()
--ABORT-- #6  0x0807d959 in notify_ADMIN ()
--ABORT-- #7  0x0807e65f in exitFATAL ()
--ABORT-- #8  <signal handler called>
--ABORT-- #9  0x0836d00f in ?? ()
--ABORT-- #10 0xb7ee6b3d in _Unwind_ForcedUnwind () from /lib/libgcc_s.so.1
--ABORT-- #11 0xb7eb27a6 in _Unwind_ForcedUnwind ()
--ABORT--    from /lib/tls/i686/cmov/libpthread.so.0
--ABORT-- #12 0xb7eb0211 in __pthread_unwind () from 
/lib/tls/i686/cmov/libpthread.so.0
--ABORT-- #13 0xb7eaa5f0 in pthread_exit () from 
/lib/tls/i686/cmov/libpthread.so.0
--ABORT-- #14 0x082ac27f in thread2 ()
--ABORT-- #15 0x082aa937 in alloca_call ()
--ABORT-- #16 0x08284740 in allocaCall ()
--ABORT-- #17 0x08284313 in thread_child ()
--ABORT-- #18 0x082ac1c9 in thread1 ()
--ABORT-- #19 0xb7ea94fb in start_thread () from 
/lib/tls/i686/cmov/libpthread.so.0
--ABORT-- #20 0xb7e2be5e in clone () from /lib/tls/i686/cmov/libc.so.6
--ABORT-- (gdb) Detaching from program: 
/home/eeknay/Desktop/delegate9-latest/delegate9.7.7/src/delegated, 
process 10416
--ABORT-- (gdb) [10416] ## 0.081 Y target, nready=1 errno=0
--ABORT-- [10414] ## 0.081 B caller, nready=1 errno=0
--ABORT-- [10414] ## 0.081 C caller, xpid=10416 [10416 10417]
--ABORT-- #### error: nready=1 xpid=10416/00000/0000X
--ABORT-- #### Terminate Debugger: kill(10417)=0 xpid=10417
--ABORT-- [10414] ## 3.082 #### Terminate Debugger: kill(10417)=0 xpid=10417
--ABORT--
--ABORT--
--ABORT-- --BackTrace--end

Perhaps someone is able to explain this to me.
Best regard,
Andre







  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V