Menu

User-agent : Restrictive proxy filtering me !

Koen Maes
2007-06-18
2013-05-23
  • Koen Maes

    Koen Maes - 2007-06-18

    Great project but unfortunately the proxy administrator was smarter than this and also filters on the User-Agent.

    403 Forbidden
    SQUID error : ERR_BROWSER
    This client is not allowed. Please use a valid browser

    The HttpTunnel does not send any agent identification and as such, I am not allowed to go through the proxy. The restrictive proxy is winning (for now).

    Any idea how I could patch the code so I can pretend that I'm using IE or firefox.

    Thx !

    Koen

     
    • Badda

      Badda - 2007-06-19

      The patch is for v1.2:
      Open httptunnel_client.pl and change the following lines:

      518 old:
      $req.="Host: $cfg->{SERVER}\r\n";
      518 new:
      $req.="Host: $cfg->{SERVER}\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4\r\n";

      735 old:
      $req.="Host: $cfg->{SERVER}\r\n";
      735 new:
      $req.="Host: $cfg->{SERVER}\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4\r\n";

      That should take care of the problem. I also created a feature request for the next version.

       
      • Koen Maes

        Koen Maes - 2007-06-19

        Thank you very much. Now authentication with the proxy works fine !

        The proxy authentication works now but I cannot SSH to my VPS yet. I manage to establish a connection but then something goes wrong during the communication. You can find the log of the ssh connection and http tunnel below.

        The final error is : Bad packet length.

        I manage to get this connection to work at home without proxy in between.
        I also managed to get a connection using SOHT http tunnel to get through this proxy before. SOHT is written in Java (both client and server). But now I would like to drop running a webapp container on my server, that's why I'm trying to move to this PHP tunnel.

        I hope you have some more advice for me on how to fix this prob.

        Thx for your time anyway !

        Koen

        ssh -p 2222 localhost
        Tue Jun 19 10:48:44 2007 - C10: Client trying to connect to PORTMAP server
        Tue Jun 19 10:48:44 2007 - C10: Request to connect to tunnel: GET http://www.export.be:80/httptunnel/tunnel.php?a=c&sw=999&s=localhost&p=7022&o=0 HTTP/1.0
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=

        Tue Jun 19 10:48:46 2007 - C10: Response: HTTP/1.0 200 OK
        Tue Jun 19 10:48:46 2007 - C10: Response: Date: Tue, 19 Jun 2007 08:49:25 GMT
        Tue Jun 19 10:48:46 2007 - C10: Response: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:48:46 2007 - C10: Response: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:48:46 2007 - C10: Response: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:48:46 2007 - C10: Response: X-Cache: MISS from eaproxy4.dhl.com
        Tue Jun 19 10:48:46 2007 - C10: Response: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:48:46 2007 - C10: Response: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:48:46 2007 - C10: Response: Proxy-Connection: close
        Tue Jun 19 10:48:46 2007 - C10: Response:
        Tue Jun 19 10:48:46 2007 - C10: Response: c:s=OK&o=0&i=yqX7xd&sn=127.0.0.1&sp=32775
        Tue Jun 19 10:48:46 2007 - C10: New PORTMAP tunnel established 127.0.0.1 -> localhost:7022
        Tue Jun 19 10:48:46 2007 - C10: c_tunneldatain : U1NILTIuMC1PcGVuU1NIXzQuM3AyIERlYmlhbi04dWJ1bnR1MQo=

        Tue Jun 19 10:48:46 2007 - C10: <- SSH-2.0-OpenSSH_4.3p2 Debian-8ubuntu1%0a
        Tue Jun 19 10:48:46 2007 - C10: Got data from client: SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1%0a
        Tue Jun 19 10:48:46 2007 - C10: -> SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1%0a
        Tue Jun 19 10:48:46 2007 - C10: Got data from client: %00%00%02%c4%05%14j%96%93%0b%07%9fX%b1%d8%f71%e3w%aeSR%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:48:46 2007 - C10: -> %00%00%02%c4%05%14j%96%93%0b%07%9fX%b1%d8%f71%e3w%aeSR%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Received disconnect from 127.0.0.1: 2: Bad packet length 0.
        koen@koeboentoe:~/HTTPTunnel_v1.2/client$ Tue Jun 19 10:48:46 2007 - C10: c_tunneldataout(): Sending outbound traffic
        Tue Jun 19 10:48:46 2007 - OT4: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 1036

        d=%3eyqX7xd%0a0%3aU1NILTIuMC1PcGVuU1NIXzQuMnAxIERlYmlhbi03dWJ1bnR1My4xCgAA%0a1%3aAAACxAUUapaTCwefWLHY9zHjd65TUgAAAFlkaWZmaWUtaGVsbG1hbi1ncm91cC1leGNoYW5nZS1zaGExLGRpZmZpZS1oZWxsbWFuLWdyb3VwMTQtc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDEtc2hhMQAAAA9zc2gtcnNhLHNzaC1kc3MAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAJ1hZXMxMjgtY2JjLDNkZXMtY2JjLGJsb3dmaXNoLWNiYyxjYXN0MTI4LWNiYyxhcmNmb3VyMTI4LGFyY2ZvdXIyNTYsYXJjZm91cixhZXMxOTItY2JjLGFlczI1Ni1jYmMscmlqbmRhZWwtY2JjQGx5c2F0b3IubGl1LnNlLGFlczEyOC1jdHIsYWVzMTkyLWN0cixhZXMyNTYtY3RyAAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAABVaG1hYy1tZDUsaG1hYy1zaGExLGhtYWMtcmlwZW1kMTYwLGhtYWMtcmlwZW1kMTYwQG9wZW5zc2guY29tLGhtYWMtc2hhMS05NixobWFjLW1kNS05NgAAABpub25lLHpsaWJAb3BlbnNzaC5jb20semxpYgAAABpub25lLHpsaWJAb3BlbnNzaC5jb20semxpYgAAAAAAAAAAAAAAAAAAAAAAAAAA%0a
        Tue Jun 19 10:48:46 2007 - OT4: Sent request, waiting for response
        Tue Jun 19 10:48:46 2007 - OT4: NOTICE Outbound tunnel error on attempt 1: HTTP Error: 198.141.87.232 terminated a HTTP response unexpectedly
        Tue Jun 19 10:48:46 2007 - OT4: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 1036

        d=%3eyqX7xd%0a0%3aU1NILTIuMC1PcGVuU1NIXzQuMnAxIERlYmlhbi03dWJ1bnR1My4xCgAA%0a1%3aAAACxAUUapaTCwefWLHY9zHjd65TUgAAAFlkaWZmaWUtaGVsbG1hbi1ncm91cC1leGNoYW5nZS1zaGExLGRpZmZpZS1oZWxsbWFuLWdyb3VwMTQtc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDEtc2hhMQAAAA9zc2gtcnNhLHNzaC1kc3MAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAJ1hZXMxMjgtY2JjLDNkZXMtY2JjLGJsb3dmaXNoLWNiYyxjYXN0MTI4LWNiYyxhcmNmb3VyMTI4LGFyY2ZvdXIyNTYsYXJjZm91cixhZXMxOTItY2JjLGFlczI1Ni1jYmMscmlqbmRhZWwtY2JjQGx5c2F0b3IubGl1LnNlLGFlczEyOC1jdHIsYWVzMTkyLWN0cixhZXMyNTYtY3RyAAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAABVaG1hYy1tZDUsaG1hYy1zaGExLGhtYWMtcmlwZW1kMTYwLGhtYWMtcmlwZW1kMTYwQG9wZW5zc2guY29tLGhtYWMtc2hhMS05NixobWFjLW1kNS05NgAAABpub25lLHpsaWJAb3BlbnNzaC5jb20semxpYgAAABpub25lLHpsaWJAb3BlbnNzaC5jb20semxpYgAAAAAAAAAAAAAAAAAAAAAAAAAA%0a
        Tue Jun 19 10:48:46 2007 - OT4: Sent request, waiting for response
        Tue Jun 19 10:48:47 2007 - OT4: Response line: HTTP/1.0 200 OK
        Tue Jun 19 10:48:47 2007 - OT4: Response line: Date: Tue, 19 Jun 2007 08:49:27 GMT
        Tue Jun 19 10:48:47 2007 - OT4: Response line: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:48:47 2007 - OT4: Response line: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:48:47 2007 - OT4: Response line: Content-Length: 20
        Tue Jun 19 10:48:47 2007 - OT4: Response line: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:48:47 2007 - OT4: Response line: X-Cache: MISS from eaproxy4.dhl.com
        Tue Jun 19 10:48:47 2007 - OT4: Response line: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:48:47 2007 - OT4: Response line: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:48:47 2007 - OT4: Response line: Proxy-Connection: keep-alive
        Tue Jun 19 10:48:47 2007 - OT4: Response body: yqX7xd OK
        yqX7xd OK

        Tue Jun 19 10:48:47 2007 - C10: c_tunneldatain : AAACvAcUpPsealY9Vpdall6ItM6ivwAAAFlkaWZmaWUtaGVsbG1hbi1ncm91cC1leGNoYW5nZS1zaGExLGRpZmZpZS1oZWxsbWFuLWdyb3VwMTQtc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDEtc2hhMQAAAA9zc2gtcnNhLHNzaC1kc3MAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAJ1hZXMxMjgtY2JjLDNkZXMtY2JjLGJsb3dmaXNoLWNiYyxjYXN0MTI4LWNiYyxhcmNmb3VyMTI4LGFyY2ZvdXIyNTYsYXJjZm91cixhZXMxOTItY2JjLGFlczI1Ni1jYmMscmlqbmRhZWwtY2JjQGx5c2F0b3IubGl1LnNlLGFlczEyOC1jdHIsYWVzMTkyLWN0cixhZXMyNTYtY3RyAAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAABVaG1hYy1tZDUsaG1hYy1zaGExLGhtYWMtcmlwZW1kMTYwLGhtYWMtcmlwZW1kMTYwQG9wZW5zc2guY29tLGhtYWMtc2hhMS05NixobWFjLW1kNS05NgAAABVub25lLHpsaWJAb3BlbnNzaC5jb20AAAAVbm9uZSx6bGliQG9wZW5zc2guY29tAAAAAAAAAAAAAAAAAAAAAAAAAAA=
        AAAALAoBAAAAAgAAABRCYWQgcGFja2V0IGxlbmd0aCAwLgAAAAAAAAAAAAAAAAAA

        Tue Jun 19 10:48:47 2007 - C10: <- %00%00%02%bc%07%14%a4%fb%1ejV=V%97Z%96^%88%b4%ce%a2%bf%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%15none,zlib@openssh.com%00%00%00%15none,zlib@openssh.com%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:48:47 2007 - C10: <- %00%00%00,%0a%01%00%00%00%02%00%00%00%14Bad packet length 0.%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:48:47 2007 - C10: Got data from client: %00%00%00%14%06"%00%00%04%00%00%00%04%00%00%00 %00%00%00%00%00%00%00
        Tue Jun 19 10:48:47 2007 - C10: -> %00%00%00%14%06"%00%00%04%00%00%00%04%00%00%00 %00%00%00%00%00%00%00
        Tue Jun 19 10:48:47 2007 - C10: Client -> tunnel disconnect start
        Tue Jun 19 10:48:47 2007 - C10: c_tunneldataout(): Sending outbound traffic
        Tue Jun 19 10:48:47 2007 - OT2: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 74

        d=%3eyqX7xd%0a2%3aAAAAFAYiAAAEAAAABAAAACAAAAAAAAAA%0a3%3ac%3adisconnect%0a
        Tue Jun 19 10:48:47 2007 - OT2: Sent request, waiting for response
        Tue Jun 19 10:48:47 2007 - OT2: NOTICE Outbound tunnel error on attempt 1: HTTP Error: 198.141.87.232 terminated a HTTP response unexpectedly
        Tue Jun 19 10:48:47 2007 - OT2: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 74

        d=%3eyqX7xd%0a2%3aAAAAFAYiAAAEAAAABAAAACAAAAAAAAAA%0a3%3ac%3adisconnect%0a
        Tue Jun 19 10:48:47 2007 - OT2: Sent request, waiting for response
        Tue Jun 19 10:48:47 2007 - C10: c_tunneldatain : c:disconnect on request server

        Tue Jun 19 10:48:47 2007 - C10: Disconnect on request server
        Tue Jun 19 10:48:47 2007 - C10: Sent 776 bytes, received 790 bytes
        Tue Jun 19 10:48:48 2007 - OT2: Response line: HTTP/1.0 200 OK
        Tue Jun 19 10:48:48 2007 - OT2: Response line: Date: Tue, 19 Jun 2007 08:49:28 GMT
        Tue Jun 19 10:48:48 2007 - OT2: Response line: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:48:48 2007 - OT2: Response line: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:48:48 2007 - OT2: Response line: Content-Length: 568
        Tue Jun 19 10:48:48 2007 - OT2: Response line: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:48:48 2007 - OT2: Response line: X-Cache: MISS from eaproxy4.dhl.com
        Tue Jun 19 10:48:48 2007 - OT2: Response line: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:48:48 2007 - OT2: Response line: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:48:48 2007 - OT2: Response line: Proxy-Connection: keep-alive
        Tue Jun 19 10:48:48 2007 - OT2: Response body: <br />
        <b>Warning</b>:  stream_socket_client() [<a href='function.stream-socket-client'>function.stream-socket-client</a>]: unable to connect to unix:///tmp/tunyqX7xd.sock (No such file or directory) in <b>/var/www/httptunnel/tunnel.php</b> on line <b>50</b><br />
        <br />
        <b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /var/www/httptunnel/tunnel.php:50) in <b>/var/www/httptunnel/tunnel.php</b> on line <b>65</b><br />
        yqX7xd ER stream_socket_client(unix:///tmp/tunyqX7xd.sock) failed: reason: No such file or directory

        koen@koeboentoe:~/HTTPTunnel_v1.2/client$ ssh -p 2222  -v localhost
        OpenSSH_4.2p1 Debian-7ubuntu3.1, OpenSSL 0.9.8a 11 Oct 2005
        debug1: Reading configuration data /etc/ssh/ssh_config
        debug1: Applying options for *
        debug1: Connecting to localhost [127.0.0.1] port 2222.
        debug1: Connection established.
        debug1: identity file /home/koen/.ssh/identity type -1
        debug1: identity file /home/koen/.ssh/id_rsa type -1
        debug1: identity file /home/koen/.ssh/id_dsa type -1
        debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-8ubuntu1
        debug1: match: OpenSSH_4.3p2 Debian-8ubuntu1 pat OpenSSH*
        debug1: Enabling compatibility mode for protocol 2.0
        debug1: Local version string SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1
        debug1: SSH2_MSG_KEXINIT sent
        Tue Jun 19 10:49:00 2007 - C11: Client trying to connect to PORTMAP server
        Tue Jun 19 10:49:00 2007 - C11: Request to connect to tunnel: GET http://www.export.be:80/httptunnel/tunnel.php?a=c&sw=999&s=localhost&p=7022&o=0 HTTP/1.0
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=

        Tue Jun 19 10:49:00 2007 - C11: Response: HTTP/1.0 200 OK
        Tue Jun 19 10:49:00 2007 - C11: Response: Date: Tue, 19 Jun 2007 08:49:40 GMT
        Tue Jun 19 10:49:00 2007 - C11: Response: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:49:00 2007 - C11: Response: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:49:00 2007 - C11: Response: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:49:00 2007 - C11: Response: X-Cache: MISS from eaproxy4.dhl.com
        Tue Jun 19 10:49:00 2007 - C11: Response: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:49:00 2007 - C11: Response: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:49:00 2007 - C11: Response: Proxy-Connection: close
        Tue Jun 19 10:49:00 2007 - C11: Response:
        Tue Jun 19 10:49:00 2007 - C11: Response: c:s=OK&o=0&i=ejz964&sn=127.0.0.1&sp=32805
        Tue Jun 19 10:49:00 2007 - C11: New PORTMAP tunnel established 127.0.0.1 -> localhost:7022
        Tue Jun 19 10:49:00 2007 - C11: c_tunneldatain : U1NILTIuMC1PcGVuU1NIXzQuM3AyIERlYmlhbi04dWJ1bnR1MQo=

        Tue Jun 19 10:49:00 2007 - C11: <- SSH-2.0-OpenSSH_4.3p2 Debian-8ubuntu1%0a
        Tue Jun 19 10:49:00 2007 - C11: Got data from client: SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1%0a%00%00%02%c4%05%14%dc%dc3K%ea%c1%c6T%f2S%992%a6%84%01%11%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00Tue Jun 19 10:49:00 2007 - C11: -> SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1%0a%00%00%02%c4%05%14%dc%dc3K%ea%c1%c6T%f2S%992%a6%84%01%11%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:49:00 2007 - C11: c_tunneldataout(): Sending outbound traffic
        Tue Jun 19 10:49:00 2007 - OT3: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 1025

        d=%3eejz964%0a0%3aU1NILTIuMC1PcGVuU1NIXzQuMnAxIERlYmlhbi03dWJ1bnR1My4xCgAAAsQFFNzcM0vqwcZU8lOZMqaEAREAAABZZGlmZmllLWhlbGxtYW4tZ3JvdXAtZXhjaGFuZ2Utc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDE0LXNoYTEsZGlmZmllLWhlbGxtYW4tZ3JvdXAxLXNoYTEAAAAPc3NoLXJzYSxzc2gtZHNzAAAAnWFlczEyOC1jYmMsM2Rlcy1jYmMsYmxvd2Zpc2gtY2JjLGNhc3QxMjgtY2JjLGFyY2ZvdXIxMjgsYXJjZm91cjI1NixhcmNmb3VyLGFlczE5Mi1jYmMsYWVzMjU2LWNiYyxyaWpuZGFlbC1jYmNAbHlzYXRvci5saXUuc2UsYWVzMTI4LWN0cixhZXMxOTItY3RyLGFlczI1Ni1jdHIAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAFVobWFjLW1kNSxobWFjLXNoYTEsaG1hYy1yaXBlbWQxNjAsaG1hYy1yaXBlbWQxNjBAb3BlbnNzaC5jb20saG1hYy1zaGExLTk2LGhtYWMtbWQ1LTk2AAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAAAabm9uZSx6bGliQG9wZW5zc2guY29tLHpsaWIAAAAabm9uZSx6bGliQG9wZW5zc2guY29tLHpsaWIAAAAAAAAAAAAAAAAAAAAAAAAA%0a
        Tue Jun 19 10:49:00 2007 - OT3: Sent request, waiting for response
        Tue Jun 19 10:49:00 2007 - OT3: NOTICE Outbound tunnel error on attempt 1: HTTP Error: 198.141.87.232 terminated a HTTP response unexpectedly
        Tue Jun 19 10:49:00 2007 - OT3: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 1025

        d=%3eejz964%0a0%3aU1NILTIuMC1PcGVuU1NIXzQuMnAxIERlYmlhbi03dWJ1bnR1My4xCgAAAsQFFNzcM0vqwcZU8lOZMqaEAREAAABZZGlmZmllLWhlbGxtYW4tZ3JvdXAtZXhjaGFuZ2Utc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDE0LXNoYTEsZGlmZmllLWhlbGxtYW4tZ3JvdXAxLXNoYTEAAAAPc3NoLXJzYSxzc2gtZHNzAAAAnWFlczEyOC1jYmMsM2Rlcy1jYmMsYmxvd2Zpc2gtY2JjLGNhc3QxMjgtY2JjLGFyY2ZvdXIxMjgsYXJjZm91cjI1NixhcmNmb3VyLGFlczE5Mi1jYmMsYWVzMjU2LWNiYyxyaWpuZGFlbC1jYmNAbHlzYXRvci5saXUuc2UsYWVzMTI4LWN0cixhZXMxOTItY3RyLGFlczI1Ni1jdHIAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAFVobWFjLW1kNSxobWFjLXNoYTEsaG1hYy1yaXBlbWQxNjAsaG1hYy1yaXBlbWQxNjBAb3BlbnNzaC5jb20saG1hYy1zaGExLTk2LGhtYWMtbWQ1LTk2AAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAAAabm9uZSx6bGliQG9wZW5zc2guY29tLHpsaWIAAAAabm9uZSx6bGliQG9wZW5zc2guY29tLHpsaWIAAAAAAAAAAAAAAAAAAAAAAAAA%0a
        Tue Jun 19 10:49:00 2007 - OT3: Sent request, waiting for response
        debug1: SSH2_MSG_KEXINIT received
        debug1: kex: server->client aes128-cbc hmac-md5 none
        debug1: kex: client->server aes128-cbc hmac-md5 none
        debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
        debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
        Tue Jun 19 10:49:01 2007 - OT3: Response line: HTTP/1.0 200 OK
        Tue Jun 19 10:49:01 2007 - OT3: Response line: Date: Tue, 19 Jun 2007 08:49:41 GMT
        Tue Jun 19 10:49:01 2007 - OT3: Response line: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:49:01 2007 - OT3: Response line: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:49:01 2007 - OT3: Response line: Content-Length: 10
        Tue Jun 19 10:49:01 2007 - OT3: Response line: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:49:01 2007 - OT3: Response line: X-Cache: MISS from eaproxy4.dhl.com
        Tue Jun 19 10:49:01 2007 - OT3: Response line: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:49:01 2007 - OT3: Response line: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:49:01 2007 - OT3: Response line: Proxy-Connection: keep-alive
        Tue Jun 19 10:49:01 2007 - OT3: Response body: ejz964 OK

        Tue Jun 19 10:49:01 2007 - C11: c_tunneldatain : AAACvAcUk7UTB2EVo6B9PzUace7WiQAAAFlkaWZmaWUtaGVsbG1hbi1ncm91cC1leGNoYW5nZS1zaGExLGRpZmZpZS1oZWxsbWFuLWdyb3VwMTQtc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDEtc2hhMQAAAA9zc2gtcnNhLHNzaC1kc3MAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAJ1hZXMxMjgtY2JjLDNkZXMtY2JjLGJsb3dmaXNoLWNiYyxjYXN0MTI4LWNiYyxhcmNmb3VyMTI4LGFyY2ZvdXIyNTYsYXJjZm91cixhZXMxOTItY2JjLGFlczI1Ni1jYmMscmlqbmRhZWwtY2JjQGx5c2F0b3IubGl1LnNlLGFlczEyOC1jdHIsYWVzMTkyLWN0cixhZXMyNTYtY3RyAAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAABVaG1hYy1tZDUsaG1hYy1zaGExLGhtYWMtcmlwZW1kMTYwLGhtYWMtcmlwZW1kMTYwQG9wZW5zc2guY29tLGhtYWMtc2hhMS05NixobWFjLW1kNS05NgAAABVub25lLHpsaWJAb3BlbnNzaC5jb20AAAAVbm9uZSx6bGliQG9wZW5zc2guY29tAAAAAAAAAAAAAAAAAAAAAAAAAAA=

        Tue Jun 19 10:49:01 2007 - C11: <- %00%00%02%bc%07%14%93%b5%13%07a%15%a3%a0}?5%1aq%ee%d6%89%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%15none,zlib@openssh.com%00%00%00%15none,zlib@openssh.com%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:49:01 2007 - C11: Got data from client: %00%00%00%14%06"%00%00%04%00%00%00%04%00%00%00 %00%00%00%00%00%00%00
        Tue Jun 19 10:49:01 2007 - C11: -> %00%00%00%14%06"%00%00%04%00%00%00%04%00%00%00 %00%00%00%00%00%00%00
        Tue Jun 19 10:49:01 2007 - C11: c_tunneldataout(): Sending outbound traffic
        Tue Jun 19 10:49:01 2007 - OT4: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 53

        d=%3eejz964%0a1%3aAAAAFAYiAAAEAAAABAAAACAAAAAAAAAA%0a
        Tue Jun 19 10:49:01 2007 - OT4: Sent request, waiting for response
        Received disconnect from 127.0.0.1: 2: Bad packet length 0.
        koen@koeboentoe:~/HTTPTunnel_v1.2/client$ Tue Jun 19 10:49:01 2007 - OT4: Response line: HTTP/1.0 200 OK
        Tue Jun 19 10:49:01 2007 - OT4: Response line: Date: Tue, 19 Jun 2007 08:49:42 GMT
        Tue Jun 19 10:49:01 2007 - OT4: Response line: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:49:01 2007 - OT4: Response line: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:49:01 2007 - OT4: Response line: Content-Length: 10
        Tue Jun 19 10:49:01 2007 - OT4: Response line: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:49:01 2007 - OT4: Response line: X-Cache: MISS from eaproxy4.dhl.com
        Tue Jun 19 10:49:01 2007 - OT4: Response line: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:49:01 2007 - OT4: Response line: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:49:01 2007 - OT4: Response line: Proxy-Connection: keep-alive
        Tue Jun 19 10:49:01 2007 - OT4: Response body: ejz964 OK

        Tue Jun 19 10:49:01 2007 - C11: c_tunneldatain : AAAALAoBAAAAAgAAABRCYWQgcGFja2V0IGxlbmd0aCAwLgAAAAAAAAAAAAAAAAAA
        c:disconnect on request server

        Tue Jun 19 10:49:01 2007 - C11: <- %00%00%00,%0a%01%00%00%00%02%00%00%00%14Bad packet length 0.%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:49:01 2007 - C11: Disconnect on request server
        Tue Jun 19 10:49:01 2007 - C11: Sent 776 bytes, received 790 bytes

        koen@koeboentoe:~/HTTPTunnel_v1.2/client$ clear

        koen@koeboentoe:~/HTTPTunnel_v1.2/client$ ssh -p 2222  -v localhost
        OpenSSH_4.2p1 Debian-7ubuntu3.1, OpenSSL 0.9.8a 11 Oct 2005
        debug1: Reading configuration data /etc/ssh/ssh_config
        debug1: Applying options for *
        debug1: Connecting to localhost [127.0.0.1] port 2222.
        debug1: Connection established.
        debug1: identity file /home/koen/.ssh/identity type -1
        debug1: identity file /home/koen/.ssh/id_rsa type -1
        debug1: identity file /home/koen/.ssh/id_dsa type -1
        debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-8ubuntu1
        debug1: match: OpenSSH_4.3p2 Debian-8ubuntu1 pat OpenSSH*
        debug1: Enabling compatibility mode for protocol 2.0
        debug1: Local version string SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1
        debug1: SSH2_MSG_KEXINIT sent
        Tue Jun 19 10:50:57 2007 - C12: Client trying to connect to PORTMAP server
        Tue Jun 19 10:50:57 2007 - C12: Request to connect to tunnel: GET http://www.export.be:80/httptunnel/tunnel.php?a=c&sw=999&s=localhost&p=7022&o=0 HTTP/1.0
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=

        Tue Jun 19 10:50:57 2007 - C12: Response: HTTP/1.0 200 OK
        Tue Jun 19 10:50:57 2007 - C12: Response: Date: Tue, 19 Jun 2007 08:51:37 GMT
        Tue Jun 19 10:50:57 2007 - C12: Response: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:50:57 2007 - C12: Response: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:50:57 2007 - C12: Response: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:50:57 2007 - C12: Response: X-Cache: MISS from eaproxy3.dhl.com
        Tue Jun 19 10:50:57 2007 - C12: Response: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:50:57 2007 - C12: Response: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:50:57 2007 - C12: Response: Proxy-Connection: close
        Tue Jun 19 10:50:57 2007 - C12: Response:
        Tue Jun 19 10:50:57 2007 - C12: Response: c:s=OK&o=0&i=tmdXhU&sn=127.0.0.1&sp=33077
        Tue Jun 19 10:50:57 2007 - C12: New PORTMAP tunnel established 127.0.0.1 -> localhost:7022
        Tue Jun 19 10:50:57 2007 - C12: c_tunneldatain : U1NILTIuMC1PcGVuU1NIXzQuM3AyIERlYmlhbi04dWJ1bnR1MQo=

        Tue Jun 19 10:50:57 2007 - C12: <- SSH-2.0-OpenSSH_4.3p2 Debian-8ubuntu1%0a
        Tue Jun 19 10:50:57 2007 - C12: Got data from client: SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1%0a%00%00%02%c4%05%14H%b4%18oLH'%c9w%9d%c6%85%9c;r%e0%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:50:57 2007 - C12: -> SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1%0a%00%00%02%c4%05%14H%b4%18oLH'%c9w%9d%c6%85%9c;r%e0%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        debug1: SSH2_MSG_KEXINIT received
        debug1: kex: server->client aes128-cbc hmac-md5 none
        debug1: kex: client->server aes128-cbc hmac-md5 none
        debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
        debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
        Tue Jun 19 10:50:57 2007 - C12: c_tunneldataout(): Sending outbound traffic
        Tue Jun 19 10:50:57 2007 - OT2: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 1025

        d=%3etmdXhU%0a0%3aU1NILTIuMC1PcGVuU1NIXzQuMnAxIERlYmlhbi03dWJ1bnR1My4xCgAAAsQFFEi0GG9MSCfJd53GhZw7cuAAAABZZGlmZmllLWhlbGxtYW4tZ3JvdXAtZXhjaGFuZ2Utc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDE0LXNoYTEsZGlmZmllLWhlbGxtYW4tZ3JvdXAxLXNoYTEAAAAPc3NoLXJzYSxzc2gtZHNzAAAAnWFlczEyOC1jYmMsM2Rlcy1jYmMsYmxvd2Zpc2gtY2JjLGNhc3QxMjgtY2JjLGFyY2ZvdXIxMjgsYXJjZm91cjI1NixhcmNmb3VyLGFlczE5Mi1jYmMsYWVzMjU2LWNiYyxyaWpuZGFlbC1jYmNAbHlzYXRvci5saXUuc2UsYWVzMTI4LWN0cixhZXMxOTItY3RyLGFlczI1Ni1jdHIAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAFVobWFjLW1kNSxobWFjLXNoYTEsaG1hYy1yaXBlbWQxNjAsaG1hYy1yaXBlbWQxNjBAb3BlbnNzaC5jb20saG1hYy1zaGExLTk2LGhtYWMtbWQ1LTk2AAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAAAabm9uZSx6bGliQG9wZW5zc2guY29tLHpsaWIAAAAabm9uZSx6bGliQG9wZW5zc2guY29tLHpsaWIAAAAAAAAAAAAAAAAAAAAAAAAA%0a
        Tue Jun 19 10:50:57 2007 - OT2: Sent request, waiting for response
        Tue Jun 19 10:50:58 2007 - OT2: Response line: HTTP/1.0 200 OK
        Tue Jun 19 10:50:58 2007 - OT2: Response line: Date: Tue, 19 Jun 2007 08:51:38 GMT
        Tue Jun 19 10:50:58 2007 - OT2: Response line: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:50:58 2007 - OT2: Response line: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:50:58 2007 - OT2: Response line: Content-Length: 10
        Tue Jun 19 10:50:58 2007 - OT2: Response line: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:50:58 2007 - OT2: Response line: X-Cache: MISS from eaproxy3.dhl.com
        Tue Jun 19 10:50:58 2007 - OT2: Response line: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:50:58 2007 - OT2: Response line: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:50:58 2007 - OT2: Response line: Proxy-Connection: keep-alive
        Tue Jun 19 10:50:58 2007 - OT2: Response body: tmdXhU OK

        Tue Jun 19 10:50:58 2007 - C12: c_tunneldatain : AAACvAcUn8ZDFFLqXE5h/ZVKJuOEEwAAAFlkaWZmaWUtaGVsbG1hbi1ncm91cC1leGNoYW5nZS1zaGExLGRpZmZpZS1oZWxsbWFuLWdyb3VwMTQtc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDEtc2hhMQAAAA9zc2gtcnNhLHNzaC1kc3MAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAJ1hZXMxMjgtY2JjLDNkZXMtY2JjLGJsb3dmaXNoLWNiYyxjYXN0MTI4LWNiYyxhcmNmb3VyMTI4LGFyY2ZvdXIyNTYsYXJjZm91cixhZXMxOTItY2JjLGFlczI1Ni1jYmMscmlqbmRhZWwtY2JjQGx5c2F0b3IubGl1LnNlLGFlczEyOC1jdHIsYWVzMTkyLWN0cixhZXMyNTYtY3RyAAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAABVaG1hYy1tZDUsaG1hYy1zaGExLGhtYWMtcmlwZW1kMTYwLGhtYWMtcmlwZW1kMTYwQG9wZW5zc2guY29tLGhtYWMtc2hhMS05NixobWFjLW1kNS05NgAAABVub25lLHpsaWJAb3BlbnNzaC5jb20AAAAVbm9uZSx6bGliQG9wZW5zc2guY29tAAAAAAAAAAAAAAAAAAAAAAAAAAA=

        Tue Jun 19 10:50:58 2007 - C12: <- %00%00%02%bc%07%14%9f%c6C%14R%ea\Na%fd%95J&%e3%84%13%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%15none,zlib@openssh.com%00%00%00%15none,zlib@openssh.com%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:50:58 2007 - C12: Got data from client: %00%00%00%14%06"%00%00%04%00%00%00%04%00%00%00 %00%00%00%00%00%00%00
        Tue Jun 19 10:50:58 2007 - C12: -> %00%00%00%14%06"%00%00%04%00%00%00%04%00%00%00 %00%00%00%00%00%00%00
        Tue Jun 19 10:50:58 2007 - C12: c_tunneldataout(): Sending outbound traffic
        Tue Jun 19 10:50:58 2007 - OT3: Request to send data: POST http://www.export.be:80/httptunnel/tunnel.php?a=s HTTP/1.1
        Host: www.export.be
        User-Agent: Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
        Proxy-Authorization: Basic a21hZXM6cHMxNzAxOTI=
        Content-Type: application/x-www-form-urlencoded
        Proxy-Connection: Keep-Alive
        Content-Length: 53

        d=%3etmdXhU%0a1%3aAAAAFAYiAAAEAAAABAAAACAAAAAAAAAA%0a
        Tue Jun 19 10:50:58 2007 - OT3: Sent request, waiting for response
        Received disconnect from 127.0.0.1: 2: Bad packet length 0.
        koen@koeboentoe:~/HTTPTunnel_v1.2/client$ Tue Jun 19 10:50:58 2007 - OT3: Response line: HTTP/1.0 200 OK
        Tue Jun 19 10:50:58 2007 - OT3: Response line: Date: Tue, 19 Jun 2007 08:51:39 GMT
        Tue Jun 19 10:50:58 2007 - OT3: Response line: Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1
        Tue Jun 19 10:50:58 2007 - OT3: Response line: X-Powered-By: PHP/5.2.1
        Tue Jun 19 10:50:58 2007 - OT3: Response line: Content-Length: 10
        Tue Jun 19 10:50:58 2007 - OT3: Response line: Content-Type: text/html; charset=UTF-8
        Tue Jun 19 10:50:58 2007 - OT3: Response line: X-Cache: MISS from eaproxy3.dhl.com
        Tue Jun 19 10:50:58 2007 - OT3: Response line: X-Cache: MISS from proxy.bru-hub.dhl.com
        Tue Jun 19 10:50:58 2007 - OT3: Response line: X-Cache-Lookup: MISS from proxy.bru-hub.dhl.com:3128
        Tue Jun 19 10:50:58 2007 - OT3: Response line: Proxy-Connection: keep-alive
        Tue Jun 19 10:50:58 2007 - OT3: Response body: tmdXhU OK

        Tue Jun 19 10:50:58 2007 - C12: c_tunneldatain : AAAALAoBAAAAAgAAABRCYWQgcGFja2V0IGxlbmd0aCAwLgAAAAAAAAAAAAAAAAAA
        c:disconnect on request server

        Tue Jun 19 10:50:58 2007 - C12: <- %00%00%00,%0a%01%00%00%00%02%00%00%00%14Bad packet length 0.%00%00%00%00%00%00%00%00%00%00%00%00%00%00
        Tue Jun 19 10:50:58 2007 - C12: Disconnect on request server
        Tue Jun 19 10:50:58 2007 - C12: Sent 776 bytes, received 790 bytes

         
        • Christian Promintzer

          Hello !

          I have exaclty the same problem here. My logoutput looks similar.
          Accessing HTTP (80) works perfectly but ssh & openvpn do not work and fail with "Bad packet length 0".

          Regards
          Christian

           
    • Koen Maes

      Koen Maes - 2007-06-19

      These log extracts seem to be the cause of the problem :

      Tue Jun 19 10:48:47 2007 - OT2: NOTICE Outbound tunnel error on attempt 1: HTTP Error: 198.141.87.232 terminated a HTTP response unexpectedly
      Tue Jun 19 10:48:47 2007 - OT2: Sent request, waiting for response
      Tue Jun 19 10:48:47 2007 - C10: c_tunneldatain : c:disconnect on request server

      Tue Jun 19 10:48:47 2007 - C10: Disconnect on request server Tue Jun 19 10:48:48 2007 - OT2: Response line: Proxy-Connection: keep-alive
      Tue Jun 19 10:48:48 2007 - OT2: Response body: <br />
      <b>Warning</b>: stream_socket_client() [<a href='function.stream-socket-client'>function.stream-socket-client</a>]: unable to connect to unix:///tmp/tunyqX7xd.sock (No such file or directory) in <b>/var/www/httptunnel/tunnel.php</b> on line <b>50</b><br />
      <br />
      <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /var/www/httptunnel/tunnel.php:50) in <b>/var/www/httptunnel/tunnel.php</b> on line <b>65</b><br />
      yqX7xd ER stream_socket_client(unix:///tmp/tunyqX7xd.sock) failed: reason: No such file or directory

       
      • Badda

        Badda - 2007-06-19

        Try checking the "Support load balanced servers" option in the Tunnel Server config.

         
    • Koen Maes

      Koen Maes - 2007-06-19

      I checked "Support load balanced servers"
      I didnt restart apache though (because I cannot access the server, you know ;-) ), but I dont think that is needed for the change to apply.
      unfortunately, no luck. server resets the connection. The server log is also attached below;

      SSH LOG :

      koen@koeboentoe:~/HTTPTunnel_v1.2/client$ ssh -p 2222 -v localhost
      OpenSSH_4.2p1 Debian-7ubuntu3.1, OpenSSL 0.9.8a 11 Oct 2005
      debug1: Reading configuration data /etc/ssh/ssh_config
      debug1: Applying options for *
      debug1: Connecting to localhost [127.0.0.1] port 2222.
      debug1: Connection established.
      debug1: identity file /home/koen/.ssh/identity type -1
      debug1: identity file /home/koen/.ssh/id_rsa type -1
      debug1: identity file /home/koen/.ssh/id_dsa type -1
      debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-8ubuntu1
      debug1: match: OpenSSH_4.3p2 Debian-8ubuntu1 pat OpenSSH*
      debug1: Enabling compatibility mode for protocol 2.0
      debug1: Local version string SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1
      debug1: SSH2_MSG_KEXINIT sent
      debug1: SSH2_MSG_KEXINIT received
      debug1: kex: server->client aes128-cbc hmac-md5 none
      debug1: kex: client->server aes128-cbc hmac-md5 none
      debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
      debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
      Received disconnect from 127.0.0.1: 2: Bad packet length 0.

      SERVER HTTPTUNNEL LOG :

      19.06.2007 04:15:47 - 206.196.111.59:43697: New tunnel established 165.72.200.10 -> localhost:7022

      19.06.2007 04:15:48 - 206.196.111.59:43697: Disconnect on request server

      19.06.2007 04:15:48 - 206.196.111.59:43697: Sent 756 bytes, received 790 bytes

      19.06.2007 04:17:23 - 165.72.200.10 Config changed by admin

      19.06.2007 04:17:42 - 206.196.111.59:46936: New tunnel established 165.72.200.10 -> localhost:7022

      19.06.2007 04:17:42 - 206.196.111.59:46936: <- SSH-2.0-OpenSSH_4.3p2 Debian-8ubuntu1%0a

      19.06.2007 04:17:43 - 206.196.111.59:46936: Got something from IPC: 0:U1NILTIuMC1PcGVuU1NIXzQuMnAxIERlYmlhbi03dWJ1bnR1My4xCgAAAsQFFKhW1PUtzrhyG0p7tG4QaJIAAABZZGlmZmllLWhlbGxtYW4tZ3JvdXAtZXhjaGFuZ2Utc2hhMSxkaWZmaWUtaGVsbG1hbi1ncm91cDE0LXNoYTEsZGlmZmllLWhlbGxtYW4tZ3JvdXAxLXNoYTEAAAAPc3NoLXJzYSxzc2gtZHNzAAAAnWFlczEyOC1jYmMsM2Rlcy1jYmMsYmxvd2Zpc2gtY2JjLGNhc3QxMjgtY2JjLGFyY2ZvdXIxMjgsYXJjZm91cjI1NixhcmNmb3VyLGFlczE5Mi1jYmMsYWVzMjU2LWNiYyxyaWpuZGFlbC1jYmNAbHlzYXRvci5saXUuc2UsYWVzMTI4LWN0cixhZXMxOTItY3RyLGFlczI1Ni1jdHIAAACdYWVzMTI4LWNiYywzZGVzLWNiYyxibG93ZmlzaC1jYmMsY2FzdDEyOC1jYmMsYXJjZm91cjEyOCxhcmNmb3VyMjU2LGFyY2ZvdXIsYWVzMTkyLWNiYyxhZXMyNTYtY2JjLHJpam5kYWVsLWNiY0BseXNhdG9yLmxpdS5zZSxhZXMxMjgtY3RyLGFlczE5Mi1jdHIsYWVzMjU2LWN0cgAAAFVobWFjLW1kNSxobWFjLXNoYTEsaG1hYy1yaXBlbWQxNjAsaG1hYy1yaXBlbWQxNjBAb3BlbnNzaC5jb20saG1hYy1zaGExLTk2LGhtYWMtbWQ1LTk2AAAAVWhtYWMtbWQ1LGhtYWMtc2hhMSxobWFjLXJpcGVtZDE2MCxobWFjLXJpcGVtZDE2MEBvcGVuc3NoLmNvbSxobWFjLXNoYTEtOTYsaG1hYy1tZDUtOTYAAAAabm9uZSx6bGliQG9wZW5zc2guY29tLHpsaWIAAAAabm9uZSx6bGliQG9wZW5zc2guY29tLHpsaWIAAAAAAAAAAAAAAAAAAAAAAAAA

      19.06.2007 04:17:43 - 206.196.111.59:46936: Got seq 0, expected seq 0

      19.06.2007 04:17:43 - 206.196.111.59:46936: -> SSH-2.0-OpenSSH_4.2p1 Debian-7ubuntu3.1%0a%00%00%02%c4%05%14%a8V%d4%f5-%ce%b8r%1bJ{%b4n%10h%92%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%1anone,zlib@openssh.com,zlib%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00

      19.06.2007 04:17:43 - 206.196.111.59:46936: <- %00%00%02%bc%07%14%d6%90h%01?8S%f0%1b%1f%08%c5n%07%9e"%00%00%00Ydiffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1%00%00%00%0fssh-rsa,ssh-dss%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00%9daes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00Uhmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96%00%00%00%15none,zlib@openssh.com%00%00%00%15none,zlib@openssh.com%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00

      19.06.2007 04:17:43 - 206.196.111.59:46936: Got something from IPC: 1:AAAAFAYiAAAEAAAABAAAACAAAAAAAAAA

      19.06.2007 04:17:43 - 206.196.111.59:46936: Got seq 1, expected seq 1

      19.06.2007 04:17:43 - 206.196.111.59:46936: -> %00%00%00%14%06"%00%00%04%00%00%00%04%00%00%00 %00%00%00%00%00%00%00

      19.06.2007 04:17:43 - 206.196.111.59:46936: <- %00%00%00,%0a%01%00%00%00%02%00%00%00%14Bad packet length 0.%00%00%00%00%00%00%00%00%00%00%00%00%00%00

      19.06.2007 04:17:43 - 206.196.111.59:46936: Disconnect on request server

      19.06.2007 04:17:43 - 206.196.111.59:46936: Sent 777 bytes, received 790 bytes

       
      • Badda

        Badda - 2007-06-19

        Hm, your (SSL) client and server are negotiating correctly over the Tunnel. I believe, the tunnel is now not the cause for your problem anymore as your SSL server and client can talk to each other.
        Maybe your SSL client is sending malformed packets?
        Can you connect directly to the SSL server?

         
    • Koen Maes

      Koen Maes - 2007-06-19

      I did connect to the SSH server before without problem.
      But I'm behind the firewall/proxy now so I cannot confirm.

      I will verify tonight wether the SSH server is the problem or not, before bothering you any further.
      Thank you very much for your support so far !

      I'll keep you posted when I did some more research on the ssh client/server.

      Koen

       
    • Koen Maes

      Koen Maes - 2007-06-25

      After some more testing it turns out :

      * I can connect to my ssh server directly without problems
      * I can connect via http tunnel to my ssh server without problems from home, where no restrictive firewall is filtering

      but
      * I cannot connect at work via http tunnel so this must be due to the restrictive firewall between me and my server :-(

      If you would like me to perform some specific test, then I would gladly assist you in further investigating the problem.

       
      • Badda

        Badda - 2007-06-25

        Hi,
        I could go ahead and analyze the problem if you gave me a couple of logfiles (loglevel 4) to compare:
        1. client log of successful connection (without proxy)
        2. server log of successful connection (without proxy)
        3. client log of unsuccessful connection (over proxy)
        3. server log of unsuccessful connection (over proxy)
        maybe you should send those to my mail addr - I believe them might be a bit long ;-)
        webersebastian at yahoo dot de
        Cheers, badda

         

Log in to post a comment.