Let Imagine I have 2 Server ,and 1st server name as Web-server having Public ID and Private ID and another server name as Database Server having only private ID by Disable Auto-assign Public IP.Suppose I Want to Connect my Database Server from my laptop it will connect or not?
No,it Will not Connect the Server Because it is a private IP but we have different Methodology to Connect that Server.
The Method are:
1.JUMP Server or BASTION HOST
2.OpenVPN(VPN)
Step for Connecting VPN
1.First, sign in to the AWS Management Console and open the AWS Marketplace console.
2.Start on your Amazon EC2 Dashboard and click on Launch Instance.
3.From the AWS Marketplace, search for “OpenVPN.”
4.n the results, you’ll see options for OpenVPN Access Server. Choose the top result.
5.Click on Select for the AMI chosen.
6.Review the pricing details, then click on Continue.
7.Choose your instance type (t2.micro for our demo) and click on Next: Configure Instance Details.
8.choose Configure Instance Details and Enable Auto-assign Public IP
- click on Next: Add Storage.
10.Click Next: Add Tags .
11.Review the security group auto-generated by AWS with the necessary ports open for the VPN, then click on Review and Launch.
12.Review your instance launch details, and click on Launch.
13.Select an existing key pair or create a new key pair, then click on Launch Instances.
14.Then select the server Click on the page for your instance while it launches.
15.SSH into your new instance with the Public IP address (we use Xshell )
17.Go through the configuration (we selected all of the defaults).
18.At the end of the set up, make note of the URLs for the Admin UI and Client UI in Notepad.
19.Now with root privileges, set a password for the openvpn bootstrap user by entering passwd openvpn.
20.Set the password, hit enter, and retype it to confirm, then hit enter.
30.Now with the password set, go to your browser and enter the URL for the Admin UI (from the step above).
31.You will see a security warning in your browser because OpenVPN Access Server ships with a self-signed certificate (something you can replace with your own web cert to remove it).
32.Log in to the Admin Web UI with your openvpn username and password just assigned.
33.Click the Admin Web UI and paste it to the Browser.
34.Go to OpenVPN and go to product.
35.Then Select the Connect Client and Select Your Device.
- Then give Client UI to client and Password.
37.Enter your Activation Key where it says, "Enter Activation Key here" and click Activate.
38.You’re up and running with your OpenVPN app and Connect VPN .
Top comments (0)