Is it possible to connect openVPN between two servers ?

Posted October 2, 2017 4.4k views


I have two servers, one distant VPS with a public address and the other one at my home. I would like to know if is it possible to link (with VPN) this 2 servers to allow the first one to get files on my home network. I already set up an openVPN server at my home but I do not know how to configure my distant server to have an interface that will connect my home network and keep my services such apache, ssh, ftp on the public address.

My goal is to transfert file securely

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Yes, you can connect OpenVPN between two servers.

Simply set up the config, generate the certs and start the processes. Don’t forget the “client-to-client” option in the config file.

Otherwise, you can set up the server on one of the servers and client on another only if you have a free port that is visible from outside on one of them.