HTC(1)
π NAME π
htc β the httptunnel client, bestie. it's giving "tunnel through the internet" energy fr fr π¦
β¨ SYNOPSIS β¨
htc [options] host[:port]
π DESCRIPTION π
okay so real talk: this manual page is a brief lil rundown of the htc command. short, sweet, gets the job done. π
here's the vibe: htc sets up a httptunnel connection to PORT at HOST. and yes the default port is 8888, she has a favorite π₯°
the second a connection is made, I/O gets redirected from whatever source you picked β the one you specified with the --device, --forward-port or --stdin-stdout switch β straight into the tunnel. iconic behavior honestly π
π OPTIONS π
so this program follows the usual GNU command line syntax, with the long options starting with two dashes (`-`). here's the full rundown, no skips, no skips, we don't do skips here:
-h,--helpβ shows you a summary of the options. the "help me bestie" button π«Ά-c,--content-lengthBYTES β uses HTTP PUT requests of BYTES size. and yes,k,M, andGpostfixes are recognized, we love a unit system that eats β¨-d,--deviceDEVICE β uses DEVICE for input and output.-F,--forward-portPORT β uses TCP port PORT for input and output.-k,--keep-aliveSECONDS β sends keepalive bytes every SECONDS seconds. the default is5. she checks in on you, she's attentive π-M,--max-connection-ageSEC β the maximum time a connection will stay open is SEC seconds. the default is300. so after that, it's over, periodt β³-S,--strict-content-lengthβ always writesContent-Lengthbytes in requests. strict queen π-A,--proxy-authorizationUSER:PASSWORD β proxy authorization. yes, in that exactUSER:PASSWORDshape.-z,--proxy-authorization-fileFILE β proxy authorization, but from a FILE this time. shy about typing it out, we get it π-B,--proxy-buffer-sizeBYTES β assumes a proxy buffer size of BYTES bytes.k,M, andGpostfixes recognized here too π«-P,--proxyHOSTNAME[:PORT] β uses a HTTP proxy. the default port is8080. going through a middleman, we love a connector πΈ-s,--stdin-stdoutβ usesstdin/stdoutfor communication. and heads up, this one implies--no-daemonπ«‘-T,--timeoutTIME β the timeout, in milliseconds, before sending padding to a buffering proxy. milliseconds!! she's precise β-U,--user-agentSTRING β specifies theUser-Agentvalue in HTTP requests. your lil disguise, your main character introduction π-R,--base-uriSTRING β specifies a base URI value for all HTTP requests. the default base URI is"/index.html?crap=". yes really. that's the default. we don't question it π-V,--versionβ outputs version information and exits. bye bestie π-w,--no-daemonβ don't fork into the background. stay right here in the front with me π₯Ί
π EXAMPLES π
start httptunnel server
hts -F localhost:22 8888
at host REMOTE, set up an httptunnel server to listen on port 8888 and forward to localhost:22. slay π
start httptunnel client
htc -F 2222 -P PROXY_ADDRESS:8000 REMOTE_IP:8888
at host LOCAL, set up an httptunnel client to forward localhost:2222 to REMOTE_IP:8888 via a local proxy at PROXY_ADDRESS:8000. look at her go π₯
or, if using a buffering HTTP proxy
htc -F 2222 -P PROXY_ADDRESS:8000 -B 48K REMOTE_IP:8888
that -B 48K is the whole moment, no cap β¨
now you can connect through the tunnel on host LOCAL
ssh ssh://localhost:2222
and that's it, you're in. tunnel girl summer π¦
π«Ά AUTHOR π«Ά
this manual page was contributed by Teemu Hukkanen <tjhukkan@iki.fi>, and was originally written for the Debian GNU/Linux system. credit where credit is due, we stan π
π SEE ALSO π
and that's the whole page, bestie π it lives under htc(1) in the General Commands Manual β that's the manual it belongs to and the title it's filed under, so if you ever need to look it up again, that's your girl. mwah π
π¦ where this page comes from
- debian trixie: httptunnel 3.3+dfsg-5 Β· GPL-2+-lars
- ubuntu noble: httptunnel 3.3+dfsg-5 Β· GPL-2+-lars
- ubuntu questing: httptunnel 3.3+dfsg-6
- ubuntu resolute: httptunnel 3.3+dfsg-6build1 Β· GPL-2+-lars
- ubuntu stonking: httptunnel 3.3+dfsg-6build1 Β· GPL-2+-lars
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms