dovahkiin dovahkiin - 26 days ago 15
Node.js Question

NodeJS only listen to a connection that uses a specific VPN service

I want to create a website that can only be accessed when using a specific VPN service. I'm using nodeJS to create the server. I don't have any specific VPN service to be used right now but i'm open to suggestions. Is there anyway to achieve that?

Answer Source

You can use AWS EC2, VPC and Direct Connect to solve this problem.

Run your nodejs server on EC2 and use Direct Connect to connect to your server.

If you want to maintain all this by yourself, you can use open-vpn between your server and to your local network.