U
U
uaf0x2020-01-18 17:07:53
System administration
uaf0x, 2020-01-18 17:07:53

How to send requests from the server from a random IP?

I have a server, it has a script written in crystal, it sends requests to YouTube. If I order several IPs in my account, is it possible to somehow configure that each request to YouTube is sent from a random IP?
Sorry for the confusion, I do not quite understand how to describe it correctly)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Denis Sechin, 2020-01-18
@tamogavk

/32 you hang up an alias on the interface and send from it

K
kiriharu, 2020-01-18
@kiriharu

Use a proxy.

A
Antonio Solo, 2020-01-19
@solotony

you hang up new IPs with separate interfaces
and when opening an outgoing connection, you specify the interface used

A
Alexander Karabanov, 2020-01-20
@karabanov

Maybe something will help namespaces https://habr.com/en/post/123140/ (the article describes one of the options for its use)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question