Access All droplets use vpn in digital ocean ?

June 18, 2016 1.1k views
Applications VPN Apache

hi.. i have several VM in digital ocean. but i want access spesific VM only access from vpn users. anyone can help ? but i want only vpn users to access service in all vm like apache for internal.

1 Answer

Do you have one droplet set up as a VPN Server yet? That would be the first step.

Also:
have private networking set up on each droplet
make all the other droplets a client of the VPS Server

If you can get that far, the rest can be done with IPTable rules

  • thanks best practice im try vm in DO be vpn client and connect to my vpn router :D

    • You might consider making your router a client, and one of your vm the server.

      Your router might be turned off, or the power go out. But your vm will stay on all the time, so it makes a better server, in my opinion.

      Having your router as a client rather than a server will keep your network intact even if your router is stopped.

Have another answer? Share your knowledge.