E
E
Egor Knyazhev2017-08-07 13:19:45
linux
Egor Knyazhev, 2017-08-07 13:19:45

How to run multiple openvpn on one machine?

The task is this, I'm running a bot on Linux that works in conjunction with openvpn, it doesn't eat up a lot of resources, so I want to run a couple more instances. But I don’t understand how to distribute which vpn tunnel to which program? I thought to run it as different users, but openvpn still works only through root. Maybe virtual? What's the easiest way to check this? And which solution will gobble up the least resources?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pcdesign, 2017-08-07
@pcdesign

openvpn still works only through root

It is enough to add in the config:
user nobody
group nobody

IMHO, why complicate with virtualization and other things, when you can run openvpn on different ports.
You can run at least a thousand openvpn on one server using different ports.

D
dummyman, 2017-08-07
@dummyman

You don't need OpenVPN, you need proxies
Install proxychains-ng. Search the repositories.
You can run any software. When launching the program through proxychains, all program traffic will follow the specified route. It is possible to use anonymization chains consisting of several proxies, tor, vpn, and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question