I have done something like this in the past using Dante SOCKS proxy
server as a SOCKS application layer router. It had the ability to chain
proxies including adding authentication to different upstream proxies.
I remember looking at socat at the time and was not able to make it work.
I'm guessing that your problem with socat is realted tot he protocol
that it uses on the northbound / upstream connection.
The only references that I see to proxyauth in the socat man page are in
relation to the PROXY: address type. It also seems as if the PROXY:
address type is for talking to an HTTP proxy using the CONNECT verb,
which is incompatible with the upstream SOCKS proxy.
--
Grant. . . .
unix || die