We can connect Publicsubnet Server by using IGW , By using VPN We can connect Privatesubnet Server directly
If Privatesubent hosted DB server we will use NAT GATWAY
In real time Will use Private servers IP only. Public server ip's are rare
Setup:
Create VPC ( public and Private Subnet )
Create IGW attach to VPC
public subent : Associate publicsubnet to IGW and edit routes 0.0.0.0 Target as IGW
Create SG for this VPC which is having Allowall rule
Launch this two servers :
PublicServer having Public IP we can connect
PrivateServer having PrivateIp only since we disabled Public IP while launching this server
Our Aim is to connect this Private server with Private IP :
Path: |user --> internet--> IGW---> VPN --> Private Server |****
Here we need to launch Open VPN server in Public Subnet
AMI : OPENVPN
Sunbet : Public Server
1 Launch OpenVPN Server
2 connect this server using putty , Login as : openvpnas , give yes for all
save password
we can see this in putty screen
During normal operation, OpenVPN AS can be accessed via these URLs:
Admin UI: https://44.201.190.7:943/admin
Client UI: https://44.201.190.7:943/
3 browse client UI url. and download installer, install VPN and login
VPN will connect automatically
connect to private server using putty, we can able to connect.
VPN : Virtual Private Network.
We can connect Publicsubnet Server by using IGW , By using VPN We can connect Privatesubnet Server directly
If Privatesubent hosted DB server we will use NAT GATWAY
In real time Will use Private servers IP only. Public server ip's are rare
Setup:
Create VPC ( public and Private Subnet ) Create IGW attach to VPC public subent : Associate publicsubnet to IGW and edit routes 0.0.0.0 Target as IGW Create SG for this VPC which is having Allowall rule
Launch this two servers :
PublicServer having Public IP we can connect PrivateServer having PrivateIp only since we disabled Public IP while launching this server
Our Aim is to connect this Private server with Private IP :
Path: |user --> internet--> IGW---> VPN --> Private Server |****
Here we need to launch Open VPN server in Public Subnet
AMI : OPENVPN Sunbet : Public Server
1 Launch OpenVPN Server
2 connect this server using putty , Login as : openvpnas , give yes for all save password we can see this in putty screen During normal operation, OpenVPN AS can be accessed via these URLs: Admin UI: https://44.201.190.7:943/admin Client UI: https://44.201.190.7:943/
3 browse client UI url. and download installer, install VPN and login
VPN will connect automatically
connect to private server using putty, we can able to connect.
Arc :