Access All droplets use vpn in digital ocean ?

Posted June 18, 2016 5.3k views

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 comment

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

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

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.