HTC(1)

πŸ“¦
version 3.3 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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-length BYTES β€” uses HTTP PUT requests of BYTES size. and yes, k, M, and G postfixes are recognized, we love a unit system that eats ✨
  • -d, --device DEVICE β€” uses DEVICE for input and output.
  • -F, --forward-port PORT β€” uses TCP port PORT for input and output.
  • -k, --keep-alive SECONDS β€” sends keepalive bytes every SECONDS seconds. the default is 5. she checks in on you, she's attentive πŸ’–
  • -M, --max-connection-age SEC β€” the maximum time a connection will stay open is SEC seconds. the default is 300. so after that, it's over, periodt ⏳
  • -S, --strict-content-length β€” always writes Content-Length bytes in requests. strict queen πŸ‘‘
  • -A, --proxy-authorization USER:PASSWORD β€” proxy authorization. yes, in that exact USER:PASSWORD shape.
  • -z, --proxy-authorization-file FILE β€” proxy authorization, but from a FILE this time. shy about typing it out, we get it πŸ™ˆ
  • -B, --proxy-buffer-size BYTES β€” assumes a proxy buffer size of BYTES bytes. k, M, and G postfixes recognized here too πŸ’«
  • -P, --proxy HOSTNAME[:PORT] β€” uses a HTTP proxy. the default port is 8080. going through a middleman, we love a connector 🌸
  • -s, --stdin-stdout β€” uses stdin/stdout for communication. and heads up, this one implies --no-daemon 🫑
  • -T, --timeout TIME β€” the timeout, in milliseconds, before sending padding to a buffering proxy. milliseconds!! she's precise ⭐
  • -U, --user-agent STRING β€” specifies the User-Agent value in HTTP requests. your lil disguise, your main character introduction 🎭
  • -R, --base-uri STRING β€” 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