Reputation: 43
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
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
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