How to organize a double proxy?

Hello. There is such task.
There is a list of proxies (it is constantly changing and the number ranges from 100 to 200)
The server is constantly plugged in (even if his IP address will be 3.3.3.3, for clarity of the example below).
Need, when referring to a server port from a remote machine was taken to the ordinal number of proxies from a text file and therefore the connection passes through this proxy. Ie in fact, if everything is simplified it should go like
Proxy list:
123.125.211.123:8010
45.123.123.123:8010
43.143.131.121:8010

We are from a remote machine connects to the proxy port
3.3.3.3:5001 and the connection through 123.125.211.123:8010
accordingly:
3.3.3.3:5002 -> 45.123.123.123:8010
3.3.3.3:5003 -> 43.143.131.121:8010
September 19th 19 at 13:09
0 answer

Find more questions by tags Proxy