简体   繁体   English

AWS 客户端 VPN 访问公共 URL/IP

[英]AWS Client VPN Access Public URL/IP

I have an AWS Landing Zone Setup.我有一个 AWS 着陆区设置。 My Shared Account contains an AWS Client VPN.我的共享账户包含一个 AWS Client VPN。 My Network Account contains Transit Gateway, this is shared with Production Account and Production Account VPC is attached.我的网络帐户包含 Transit Gateway,它与生产帐户共享,并且附加了生产帐户 VPC。 My Production Account contains a VPC which initally had Private Subnet and one EC2 Instance.我的生产账户包含一个最初有私有子网和一个 EC2 实例的 VPC。

Initially my team wanted to login to the EC2 and install some softwares.最初我的团队想登录 EC2 并安装一些软件。 This setup was successfull and my team has completed their work.这个设置很成功,我的团队已经完成了他们的工作。

Now,Due to some requirement changes (they have configured a Website) over the Instance, I changed my Private Subnet to Public Subnet by introducing IGW entry in the Route Table.现在,由于实例上的一些需求更改(他们配置了一个网站),我通过在路由表中引入 IGW 条目将我的私有子网更改为公共子网。 Also, I have attached an Elastic IP.另外,我附上了一个弹性IP。

One of the other team wanted to connect to this URL/Portal, so I have added their corporate VPN Public address in the Security Group.其他团队之一想要连接到此 URL/门户,因此我在安全组中添加了他们的公司 VPN 公共地址。 They are able to access the website/portal/url easily.他们能够轻松访问网站/门户/网址。

Now my team wants to access the URL, but they are not able to access it and I cannot make it Public or Open to world现在我的团队想要访问该 URL,但他们无法访问它,我无法将其设为公开或向全世界开放

Other Configurations:其他配置:

  • Current Security Group contains Inbound All Traffic from AWS Client VPN and the Corporate VPN当前安全组包含来自 AWS Client VPN 和企业 VPN 的所有入站流量
  • DNS entries and resolution is done by other team, they have made entry for the Public IP and the URL to which it should resolve DNS 条目和解析由其他团队完成,他们已输入公共 IP 及其应解析到的 URL

What changes I should make so that my team can connect to VPN and should be able to access this portal/URL?我应该进行哪些更改,以便我的团队可以连接到 VPN 并应该能够访问此门户/URL?

I added the entires of my URL in my local machine host file and mapped it to my EC2 Private IP.我在我的本地机器主机文件中添加了我的全部 URL,并将其映射到我的 EC2 私有 IP。

Now I can connect to my VPN and access the URLs from my browser.现在我可以连接到我的 VPN 并从我的浏览器访问 URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM