I have a VPS (Cent OS 6) on a live IP. I have several other machines (All linux, mostly Cent OS 6 and a few Android devices) sitting behind NATted ADSL Routers on several sites.

I need to create a VPN between them, so that any device can ping or ssh into other devices participating in the VPN. Live Server can act as the host. Security is important.

I fairly comfortable with Linux CLI, but I don't know where to start for this project.

My questions is, What are the steps that I need to do to achieve the above setup?

1 Answer 1


The whole setup is too long to be described here, also there are multiple ways how you might want to configure it, so to provide an overview:

  • You need to setup OpenVPN server. I would advice to do it on a VPS with external IP.
  • Setup OpenVPN clients on other servers and android devices to connect to your OpenVPN server.

You can find quick setup/proof-of-concept guide on OpenVPN site: http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html

CentOS specific guides:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .