I'm trying to use httptunnel
for tunnel a connection like this:
on Server:
sudo hts -F localhost:10000 81
nc -l -p 10000
On Client:
sudo htc -F 7777 server_ip_address:81
telnet 127.0.0.1 7777
but telnet fails:
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
syslog says:
Nov 6 01:41:37 r1y4n-PC htc[1695]: htc (httptunnel) 3.3 started with arguments:
Nov 6 01:41:37 r1y4n-PC htc[1695]: me = htc
Nov 6 01:41:37 r1y4n-PC htc[1695]: device = (null)
Nov 6 01:41:37 r1y4n-PC htc[1695]: host_name = server_ip_address
Nov 6 01:41:37 r1y4n-PC htc[1695]: host_port = 81
Nov 6 01:41:37 r1y4n-PC htc[1695]: proxy_name = (null)
Nov 6 01:41:37 r1y4n-PC htc[1695]: proxy_port = 8080
Nov 6 01:41:37 r1y4n-PC htc[1695]: proxy_buffer_size = 0
Nov 6 01:41:37 r1y4n-PC htc[1695]: proxy_buffer_timeout = -1
Nov 6 01:41:37 r1y4n-PC htc[1695]: content_length = 102400
Nov 6 01:41:37 r1y4n-PC htc[1695]: forward_port = 7777
Nov 6 01:41:37 r1y4n-PC htc[1695]: max_connection_age = 300
Nov 6 01:41:37 r1y4n-PC htc[1695]: use_std = 0
Nov 6 01:41:37 r1y4n-PC htc[1695]: strict_content_length = 0
Nov 6 01:41:37 r1y4n-PC htc[1695]: keep_alive = 5
Nov 6 01:41:37 r1y4n-PC htc[1695]: proxy_authorization = (null)
Nov 6 01:41:37 r1y4n-PC htc[1695]: user_agent = (null)
Nov 6 01:41:37 r1y4n-PC htc[1695]: debug_level = 0
Nov 6 01:41:49 r1y4n-PC htc[1695]: http_write_request: write error: Invalid argument
Nov 6 01:41:49 r1y4n-PC htc[1695]: couldn't open tunnel: Invalid argument
Nov 6 01:41:49 r1y4n-PC htc[1695]: exit with status = 1
What causes the http_write_request: write error: Invalid argument
?
How can I tunnel my connection correctly?
Both server and client are Ubuntu 14.04
Thanks