httptunnel is not working in general in Ubuntu (but in Debian)

Bug #1443660 reported by m4dm4x1337
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
httptunnel (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello,

httptunnel is not working in general in Ubuntu. I did the following from a Ubuntu (Gnome) 14.04 Live CD and from a Debian (Gnome) 7.8.0 Live CD:

apt-get update

apt-get install httptunnel openssh-client openssh-server

service ssh restart

hts -F localhost:22 443

htc -F 10022 localhost:443

ssh -p 10022 ubuntu-gnome@localhost

------------------------------------------------------------------------------

It is working in Debian, but not in Ubuntu. ssh always return this error:

ssh_exchange_identification: read: Connection reset by peer

It also happens if I try this patched ppa version:
https://bugs.launchpad.net/ubuntu/+source/httptunnel/+bug/1414758/comments/3

It also happens if I compile the original source code. I did this for version 3.0.5 and 3.3 and enabled the debug mode:

------------------------------------------------------------------------------

hts.log

20150412 184651 hts (httptunnel) 3.3 started with arguments:
20150412 184651 me = hts
20150412 184651 device = (null)
20150412 184651 port = 443
20150412 184651 forward_port = 22
20150412 184651 forward_host = localhost
20150412 184651 content_length = 102400
20150412 184651 strict_content_length = 0
20150412 184651 use_std = 0
20150412 184651 debug_level = 9
20150412 184651 pid_filename = (null)
20150412 184651 waiting for tunnel connection
20150412 184751 connection from 127.0.0.1:46211
20150412 184751 read (5, 0x945a1f8, 1) ...

------------------------------------------------------------------------------

htc.log

20150412 184705 htc (httptunnel) 3.3 started with arguments:
20150412 184705 me = htc
20150412 184705 device = (null)
20150412 184705 host_name = 127.0.0.1
20150412 184705 host_port = 443
20150412 184705 proxy_name = (null)
20150412 184705 proxy_port = 8080
20150412 184705 proxy_buffer_size = 0
20150412 184705 proxy_buffer_timeout = -1
20150412 184705 content_length = 102400
20150412 184705 forward_port = 10022
20150412 184705 max_connection_age = 300
20150412 184705 use_std = 0
20150412 184705 strict_content_length = 0
20150412 184705 keep_alive = 5
20150412 184705 proxy_authorization = (null)
20150412 184705 user_agent = (null)
20150412 184705 debug_level = 9
20150412 184705 server_socket (10022) = 4
20150412 184705 waiting for connection on port 10022
20150412 184751 wait_for_connection_on_socket (4) = 5
20150412 184751 creating a new tunnel
20150412 184751 tunnel_new_client ("127.0.0.1", 443, "(null)", 8080, 102400)
20150412 184751 tunnel_connect()
20150412 184751 tunnel_out_setsockopts: non-fatal SO_SNDLOWAT: 1
20150412 184751 tunnel_out_setsockopts: SO_LINGER: onoff=1 linger=2000
20150412 184751 tunnel_out_setsockopts: non-fatal TCP_NODELAY: 1
20150412 184751 tunnel_out_setsockopts: SO_KEEPALIVE: 1
20150412 184751 write (6, 0xbfc573bc, 43) ...
20150412 184751 ... = -1
20150412 184751 http_write_request: POST /index.html?crap=1428857271 HTTP/1.1

20150412 184751 http_write_request: write error: Invalid argument
20150412 184751 couldn't open tunnel: Invalid argument
20150412 184751 exit with status = 1

------------------------------------------------------------------------------

ssh.log

OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 10022.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

------------------------------------------------------------------------------

Tags: patch
tweej (tweej)
Changed in httptunnel (Ubuntu):
status: New → Confirmed
Revision history for this message
tweej (tweej) wrote :

This is indeed a bug. Here's a fix against 3.3+dfsg-3. See http://askubuntu.com/a/694568/284211 for an explanation.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "08-fix-socket-level.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
tweej (tweej) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.