Answer the question
In order to leave comments, you need to log in
How to make a chain of OpenVPN servers?
I have access to several OpenVPN servers. You need to connect through them in series. I'm not the administrator of these servers, so this should only be configured on the client side. I'm using Fedora 22. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
In the client config for the first server, specify
in the client config for server 2 route IP_адрес_сервера_3 255.255.255.255
, etc.
In the client config for the last server, add the redirect-gateway option.
Add route-nopull to all configs. In the routing table, add the route to the first server through your default gateway explicitly (ie not 0.0.0.0).
Run clients in turn from first to last
You can also add rules to the firewall that prohibit connections from the ip of the local computer to the ip addresses of servers, except for the first server, so that if one of the servers in the chain fails, the connection does not go directly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question