1 droplets with web app, 2 office building, some phones and VPN?

April 24, 2015 678 views

Hi all,
I have 1 droplets which is running an web application.
I have 2 office building with out IP is not static.
I have some phones (android) use 3G.

And now, I want to config that only allows the pc inside that 2 office connect to that droplets web app.
beside, need to allows some specific phones to connect to that droplets web app too.

How can I do that? build a VPN? is there some links to learn how to do that?


1 Answer

Yes. Setting up a VPN would be the best solution for this. This tutorial will walk you through setting up an OpenVPN server your clients can connect to. Once your clients are connecting via the VPN server you can simply restrict your web service to the VPN server's IP.

by James
OpenVPN is a full-featured open source Secure Socket Layer (SSL) VPN solution that accommodates a wide range of configurations. In this tutorial, we'll set up an OpenVPN server on a Droplet and then configure access to it from Windows, OS X, iOS and Android. This tutorial will keep the installation and configuration steps as simple as possible for these setups.
  • hi, Thx for answer.
    other relative questions:

    • am I need the other VPS for the VPN server?
    • for each office, am I need a device (server, router,...) for the VPN connect?
    • about the phones, did I need any apps for the VPN. thx
  • When using OpenVPN there is no need to any specialized hardware on-site. The computers that will be using the VPN simply need to have the OpenVPN client installed. The same goes for phones (an openvpn app is available). You can install OpenVPN and your web services on the same droplet but you may find it more convenient to maintain on it's own droplet. A 1GB droplet should be sufficient as routing network traffic does not require a lot of resources.

Have another answer? Share your knowledge.