dovahkiin
dovahkiin

Reputation: 43

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?

Upvotes: 0

Views: 743

Answers (2)

Clive Makamara
Clive Makamara

Reputation: 3035

The easiest way I could think to achieve this is by getting tge VPN's ip address range and then creating firewall rules that whitelist those ip ranges

Upvotes: 0

Kannaiyan
Kannaiyan

Reputation: 13025

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.

Upvotes: 1

Related Questions