Is it possible to connect openVPN between two servers ?


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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.