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

Posted April 24, 2015 2.9k 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?


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. 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.