Is it possible to connect openVPN between two servers ?

October 2, 2017 2.5k views
Debian Networking VPN


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

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.

Have another answer? Share your knowledge.

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