D
D
Denis2016-11-16 21:09:02
proxy
Denis, 2016-11-16 21:09:02

How is a chain of socks servers technically created?

Explain technically how a chain is created through several socks servers? What is needed is a description at the protocol level, and not an example of a configuration in any finished product.
Preferably for Socks V5.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2016-11-16
@denis_vl

The proxy chain principle is the same for both SOCKS and HTTPS. I made a chain on HTTPS proxy like this:
1) I connect via TCP to proxy No. 1 (TCP connect to the desired address / port)
2) I ask the proxy to create a channel with proxy No. 2 (in my case, I send the packet "CONNECT 222.222.222.222" via TCP :8080")
3) The proxy connects via TCP to the specified address
4) I get a message from proxy #1 that the connection has been established ("HTTP/1.0 200 Connection established\r\n\r\n")
5) Next, proxy #1 simply redirects packets back and forth between me and proxy #2, without changing or processing them in any way. We forget about it, we consider that we have a direct TCP connection with proxy No. 2
6) Repeat steps 2-5 for all other proxies in the chain
7) We ask the last proxy to connect us to the desired site and again we are waiting for the message "Connection Established"
In the case of SOCKS proxy, commands and responses will be in SOCKS format, the rest is identical.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question