I've a socks5 proxy running on 127.0.0.1:1080 with username and passwd set to 123 and 123. Now I want to make another socks5 proxy on 127.0.0.1:1090 which uses the 127.0.0.1:1080 as its upstream. The test is as follows:
Running socat with the following command line options:
$ socat TCP4-LISTEN:1090,reuseaddr,fork \ TCP4:127.0.0.1:1080,proxyauth=123:123
Then check the above setting with curl:
$ curl -x socks5://123:1...@127.0.0.1:1090 www.baidu.com
But I meet the following error:
$ socat TCP4-LISTEN:1090,reuseaddr,fork TCP4:127.0.0.1:1080,proxyauth=123:123 2021/09/03 12:55:14 socat[1088517] E parseopts(): option "proxyauth" not supported with this address type
Any hints/suggestions for adapting the socat command line arguments to this specific scenario?
Regards,
HY
I've a socks5 proxy running on 127.0.0.1:1080 with username and passwd set to 123 and 123. Now I want to make another socks5 proxy on 127.0.0.1:1090 which uses the 127.0.0.1:1080 as its upstream. The test is as follows:
Running socat with the following command line options:
$ socat TCP4-LISTEN:1090,reuseaddr,fork \ TCP4:127.0.0.1:1080,proxyauth=123:123
Then check the above setting with curl:
$ curl -x socks5://123:1...@127.0.0.1:1090 www.baidu.com
But I meet the following error:
$ socat TCP4-LISTEN:1090,reuseaddr,fork TCP4:127.0.0.1:1080,proxyauth=123:123 2021/09/03 12:55:14 socat[1088517] E parseopts(): option "proxyauth" not supported with this address type
Any hints/suggestions for adapting the socat command line arguments to this specific scenario?
I've a socks5 proxy running on 127.0.0.1:1080 with username and
passwd set to 123 and 123. Now I want to make another socks5 proxy
on 127.0.0.1:1090 which uses the 127.0.0.1:1080 as its upstream. The
test is as follows:
On 9/2/21 11:41 PM, hongy...@gmail.com wrote:
I've a socks5 proxy running on 127.0.0.1:1080 with username andI have done something like this in the past using Dante SOCKS proxy
passwd set to 123 and 123. Now I want to make another socks5 proxy
on 127.0.0.1:1090 which uses the 127.0.0.1:1080 as its upstream. The
test is as follows:
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.
On Saturday, September 4, 2021 at 10:58:54 PM UTC+8, Grant Taylor wrote:
On 9/2/21 11:41 PM, hongy...@gmail.com wrote:
I've a socks5 proxy running on 127.0.0.1:1080 with username andI have done something like this in the past using Dante SOCKS proxy
passwd set to 123 and 123. Now I want to make another socks5 proxy
on 127.0.0.1:1090 which uses the 127.0.0.1:1080 as its upstream. The
test is as follows:
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:Thank you for sharing your experience. Another similar tool for this purpose is proxychains-ng [1].
address type is for talking to an HTTP proxy using the CONNECT verb,
which is incompatible with the upstream SOCKS proxy.
All these two tools need the conf file to work instead of the arguments supplied on the command line, which makes it inconvenient for some simple commang line testing scenarios, say, the question discussed here.
[1] https://github.com/rofl0r/proxychains-ng
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 219:45:52 |
Calls: | 6,622 |
Calls today: | 4 |
Files: | 12,171 |
Messages: | 5,317,875 |