D
D
Dmitry Bashinsky2020-06-15 23:45:52
Computer networks
Dmitry Bashinsky, 2020-06-15 23:45:52

How to set up several proxy servers on one machine?

Hello, I want to raise several proxies in the cheapest possible way.
I just wrote a proxy server and wrapped it in docker, tested it, everything is ok, but there are a couple of questions left on how to scale further.

1) Having bought additional IP addresses on the hosting, how should I resolve them on the machine? I found an example of how to forward a port with ip to a container, -p 192.168.1.100:8080:80but this is for incoming requests, what ip will my proxy server use when it opens a connection to the final host?
2) The application opens a TCP listener that listens to IpAddress.Any, maybe I should specify a specific ip here? Or is port forwarding enough?
3) If there are any other ways to raise a lot of proxies with different ip? what does the provider do to give me an ip? why does it cost money?
4) If I ask my provider to allocate more ip addresses to my home, do I need a separate cord for each ip? or can there still be an infinite number through 1 cord and ethernet input?
5) Can you advise a hosting that allocates a bunch of ip addresses not expensive?)

Ultimate goal (desire):
- Several containers are deployed on the computer, each with a different ip
- Each container catches and sends requests strictly according to its own ip.
- Hosting that gives an infinite number of ip (for money, of course, so that there is an opportunity to grow)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
Ziptar, 2020-06-16
@BashkaMen

1. As convenient - and sort it out. In general, the provider simply routes your ip to you. If there are any separate troubles with the allocation of addresses from a particular provider, instructions must be requested from this particular provider.
2. When it comes to networks, there are never too many restrictions ^^
3. The provider buys a pool of addresses from IANA and provides them to its customers.
4. For starters, your home provider is likely to send you to hell. In general, yes, a lot of addresses can be done through one cord.

K
ky0, 2020-06-16
@ky0

There are a lot of questions, some of which are easy to google, and the other is told without problems by a system administrator with little experience. The Toaster does not like such complex sheets - and quite rightly so. Decompose, otherwise rather "this is a task, not a question."

C
CityCat4, 2020-06-16
@CityCat4

If I ask my ISP to give me more ip addresses at home, do I need a separate cord for each ip? Or can there still be an infinite number through 1 cord and ethernet input?

... then most likely he will send you through the forest. And besides, the home pr is usually able to provide addresses from only one block, which are easily blocked by the mask :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question