V
V
Vasily Ivanov2021-04-13 11:19:28
linux
Vasily Ivanov, 2021-04-13 11:19:28

How to connect to two different ip at the same time?

I have two .ovpn files. They look like this:

dev tun
proto tcp
remote 61.211.140.7 1949
;http-proxy-retry
;http-proxy [proxy server] [proxy port]
cipher AES-128-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
verb 3


Only ip and port differ in these files. How to connect to two different ip at the same time? I connected to one server using the commandopenvpn --config /tmp/tmp73fds6

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2021-04-13
@SignFinder

The question is not clear.
What prevents hands to start openvpn twice with different config files?
Is it possible to create init scripts for autorun for systemd\upstart\sysv (OS dependent) for different configs and run them through them?
For systemd, for example something like this https://community.openvpn.net/openvpn/wiki/Systemd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question