A
A
AkZwork2020-03-19 19:26:20
linux
AkZwork, 2020-03-19 19:26:20

How to make DoubleVPN when one server has ssh access and the other only has ovpn file?

Good afternoon.
How can Double VPN be done in this way:
1. Client connection address - IP of my server (I have access).
2. Public address (which is displayed, for example, on 2ip) - the IP of the paid VPN service. There is only .ovpn file.
I tried doing both openvpn-server and openvpn-client at the same time on my server. The connection went on, but SSH access disappeared completely. I went through VNC - the ip shows the correct one, but access to the server is lost and the connection through my ip to openvpn does not occur.
There are instructions on the net, but in all cases it is assumed that there is access to two servers.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2020-03-19
@mureevms

The principle of operation is as follows:
1. The first in the chain should be your server to which you have access via SSH. Clients must also connect to it. Let's call it VPS.
2. The second in the chain must be the server from which there is a .ovpn file. Let's call it OVPN service.
3. Set up the OpenVPN client on the VPS with the config from the OVPN service. Plus, set up an OpenVPN server.
In theory, that's all.
The problem in your case is in the configs. Most likely, after connecting to the OVPN service, the default gateway changes, which is why it is not possible to connect to the VPS. To restore, you need to write up / down scripts for the correct redefinition of routes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question