ucspi-proxy(1)
π ucspi-proxy β from the General Commands Manual, section 1 π
okay bestie, sit down, we're learning ucspi-proxy today and it's actually so simple it's kinda iconic π
β¨ NAME β¨
ucspi-proxy β copy data between a UCSPI client and server π¦
πΈ SYNOPSIS πΈ
ucspi-proxy [ -v ] [ -t TIMEOUT ] [ HOST PORT ]
π DESCRIPTION π
So here's the whole vibe: ucspi-proxy is literally just a simple loop π. It copies data from a UCSPI server (that's file descriptor 0, bestie) over to the client, and it copies data from the client back to the server (that's FD 1). If either socket closes, ucspi-proxy dips out and exits. That's the whole thing. No cap.
And the way that the other ucspi-proxy-* programs are literally based on this exact same simple loop?? They have similar usage. Family resemblance, slay. π
Now, if HOST and PORT are given on the command line, ucspi-proxy will make a TCP connection using those parameters. If neither of them is present, it uses file descriptor 6 for the client socket instead β that's the one UCSPI client programs hand you. π«Ά
π OPTIONS π
-l MAXLINEβ the maximum length of lines (from either the server or the client) that get copied to the log. Defaults to64. π-t TIMEOUTβ when it's making a connection,ucspi-proxywaits a maximum ofTIMEOUTseconds before it gives up. Defaults to30. β³-vβ print messages about errors and byte counts. Without this option,ucspi-proxyis completely silent π€« (mysterious main character energy, honestly).
π₯ RETURN VALUE π₯
It exits 0 if a normal end of file was reached on one of the sockets. Otherwise? It exits 1. Simple as that. β¨
π SEE ALSO π
ucspi-unixucspi-tcp
π friendly reminder bestie: no -l in the synopsis line but it's definitely in the options, so don't come for me, I just report what the manpage says fr fr
mwah π that's the whole page β brought to you by the General Commands Manual, ucspi-proxy(1), and yes it's section 1 because it's a command, periodt πβ¨π
π¦ where this page comes from
- debian bookworm: ucspi-proxy 0.99-3
- debian trixie: ucspi-proxy 0.99-7 Β· GPL-2.0-or-later
- ubuntu jammy: ucspi-proxy 0.99-1.1
- ubuntu noble: ucspi-proxy 0.99-4
- ubuntu questing: ucspi-proxy 0.99-7
- ubuntu resolute: ucspi-proxy 0.99-8 Β· GPL-2.0-or-later
- ubuntu stonking: ucspi-proxy 0.99-8 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms