K
K
Kirill Gorelov2022-02-10 13:46:47
linux
Kirill Gorelov, 2022-02-10 13:46:47

VPN with reboot via console?

I looked for a bunch of vpn, everything is great, cool. Ready to buy. But I need to be able to change ip through the console using cron.
Nowhere is it written about such a possibility, so I would like to ask here, maybe someone knows this?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Ruslan Fedoseev, 2022-02-10
@martin74ua

Elementary.
Take one vps. On it, you raise the vpn server so that you connect to it.
Buy N more .... no, N is not enough, better M vps in different places. Well, how many unique IPs do you need there? a hundred? buy 100 vps.
Now, on the first vps, you set up the ability to access the Internet through any of the 100 vps... Well, for example, with vpn connections...
Voila. You connect to one server, and on it you can choose through which SP to go to the Internet ...
Shl. Any service that gives you the ability to change your ip or exit location did the same....

T
Talyan, 2022-02-10
@flapflapjack

You raise as many VPNs as you need IP addresses on your machine, the main thing is that they all have a different gateway.
And change like this:

ip route del default
ip route add default via ip_адрес_удаленного_шлюза

In this case, all VPN connections must be immediately raised. In the above script, change only the address of the remote gateway

P
pfg21, 2022-02-10
@pfg21

the availability of this option depends only on the owner of the VPN.
Well, if it is, then it will provide a method for changing the SP.
it does not depend on the parameters of the local system.

A
AlexVWill, 2022-02-10
@AlexVWill

so that I could change ip through the console using cron

what IP are you going to change?

C
CityCat4, 2022-02-10
@CityCat4

Yes, everyone knows :)
Your own. The architecture was roughly sketched by Ruslan Fedoseev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question