SOCKC(1)

NAME
sockc - UCSPI SOCKS 5 proxy client

SYNOPSIS
tcpclient proxy-host proxy-port sockc host port program [arguments]

DESCRIPTION
The sockc utility is a SOCKS 5 proxy handler for a UCSPI execchain. It communicates with tcpclient over pipes with filedescriptor 6 and 7. tcpclient connects to the SOCKS proxy and delegates the further protocol handling to sockc. sockc talks with the SOCKS proxy and initiates a tcp connection to host with port. After connection initiation sockc executes program with arguments.

ENVIRONMENT
The following environment variables are defined in the UCPSI specification. By the usage of sockc there are two TCP connections. One from the tcpclient to the SOCKS proxy and an other from the SOCKS proxy to the server. The sockc programm tries to handel this in a transparant way for the program. All variables which are set from tcpclient to describe the TCP connection between program and proxy are overwritten with the description of the TCP connection between proxy and server. Additionally variables are set to describe the connection between program and proxy.

SOCKSLOCAL TCPLOCAL | | program <--> proxy <--> server | | SOCKSREMOTE TCPREMOTE

PROTO
    Is set to TCP.

TCPLOCALHOST TCPLOCALIP TCPLOCALPORT
    These variables are set to the hostname, IP address and port number of the local SOCKS proxy address.

TCPREMOTEHOST TCPREMOTEIP TCPREMOTEPORT
    These variables are set to the hostname, IP address and port number of the server.

SOCKSLOCALHOST SOCKSLOCALIP SOCKSLOCALPORT
    These variables are set to the hostname, IP address and port number of the tcpclient local side.

SOCKSREMOTEHOST SOCKSREMOTEIP SOCKSREMOTEPORT
    These variables are set to the hostname, IP address and port number of the SOCKS proxy server side.

SEE ALSO
httppc(1), tcpclient(1)

STANDARDS
RFC 1928, SOCKS version 5

AUTHORS
This program was written by Jan Klemkow <j.klemkow@wemelug.de>.