Setup VPN server in AWS cloud
We are listed in AWS Marketplace, this guide helps you to setup an AWS EC2 instance with our marketplace AMI and On-Premise option.
With On-Premise option, you can bring in any Ubuntu 18.04 loaded server with public IPV4 address. It can be at your premise or a physical server located in a data center or a virtual machine with a cloud provider on your own account.
Please follow below instructions to complete VPN server setup.
1. Create an EC2 instance first. On Amazon Machine Image (AMI) select page, select AWS Marketplace from the left side menu options and search for utunnel. You should see UTunnel VPN in the search result. Click the Select button on the right side and proceed with instance launch.
2. Login to our dashboard and click on either Create a Server now option or select Create Server button to create a new server.
3. Here you can provide your billing address details. This step is optional. You can either provide the details and click on the Proceed button or select the Skip button to do it later from My Account tab on your dashboard.
4. The next step is to select On-Premise option and enter the server details as given below:
- Package: You can select from Basic or Standard subscription options
- Server Type: Select On-Premise
- Server Name: An easily identifiable name of your choice
- IP address: Enter the IP address of newly created EC2 instance
- VPN accounts: Select the number of VPN accounts you want to purchase
- Coupon: Enter if you have any coupon available
Click on the Create Server button toward the right bottom of the screen.
5. Now enter your credit card details as required on the screen and click on Pay Now option.
6. You will be redirected to the Server Details screen where the registration token is displayed. Please copy the registration token to safe place, this token is required when you deploy the server.
7. Connect to your server via SSH and complete the registration process. You may need to provide the registration token obtained in Step #6 to complete the registration process. Once the registration is complete, your server will be ready to use. You may run following commands to register your instance and start UTunnel service on it.
sudo /utunnel/bin/utnservice register YOUR_REGISTRATION_TOKEN
Now it's the time to start UTunnel Service on your server. Run following command for the same.
sudo /utunnel/bin/utnservice start
Remember to replace the string YOUR_REGISTRATION_TOKEN in first command with the actual registration token obtained in step #6
8. You may need to allow inbound connections to following port on your instance, please update the Security Group settings accordingly.
UDP - 443
TCP - 443
UDP - 500
UDP - 4500