英文:
Can't browse Amazon retail site from VPN inside VPC
问题
我使用VPN来访问AWS VPC中的服务。我还将这个VPN用作连接本地互联网的网关。奇怪的是,当我连接VPN时,我无法浏览amazon.com或amazon.co.uk。我可以进入主页并显示正确,但无论我尝试做什么,都会出现错误503 - 服务不可用:
"对不起
在我们尝试处理您的请求时发生错误。
我们正在解决问题,预计会很快解决。请注意,如果您尝试下订单,此时不会处理订单。请稍后再试。
对此造成的不便,我们深感抱歉。"
再次强调,这是Amazon的零售/购物网站。
禁用VPN时可以正常工作。
我可以采取什么措施来解决这个问题?
谢谢!
英文:
I use a VPN to access services in an AWS VPC. I also use this VPN as a gateway to my local internet. The strange thing is that when I'm connected to the VPN, I can't browse amazon.com or amazon.co.uk I can get to the home page and it displays correctly, but whatever I try to do, I get an error 503 - Service Unavailable:
"We're sorry
An error occurred when we tried to process your request.
We're working on the problem and expect to resolve it shortly. Please note that if you were trying to place an order, it will not have been processed at this time. Please try again later.
We apologise for the inconvenience."
Again, this is Amazon's retail/shopping website.
It works fine with the VPN disabled.
What can I do to get this fixed?
Thanks!
答案1
得分: 2
看起来amazon.com阻止了Amazon EC2实例使用的IP地址范围的访问。这可能是为了防止信息被抓取。
我通过一个EC2实例访问了一个页面,并在HTML页面的开头作为注释看到了这条消息:
>要讨论自动访问Amazon数据,请联系api-services-support@amazon.com。
>
>有关迁移到我们的API的信息,请参阅我们的Marketplace APIs,网址为https://developer.amazonservices.com/ref=rm_5_sv,或者我们的Product Advertising API,网址为https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html/ref=rm_5_ac,用于广告用途。
事实上,我在许多网站上都看到了这种行为。
虽然这不能解决您通过VPN连接发送流量到互联网的用例,但至少可以解释为什么会发生这种情况。
英文:
It appears that amazon.com prevents access to the IP address range used by Amazon EC2 instances. This is possibly done to prevent scraping of information.
I accessed a page via an EC2 instance and noticed this message as a comment in the beginning of the HTML page:
>To discuss automated access to Amazon data please contact api-services-support@amazon.com.
>
>For information about migrating to our APIs refer to our Marketplace APIs at https://developer.amazonservices.com/ref=rm_5_sv, or our Product Advertising API at https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html/ref=rm_5_ac for advertising use cases.
In fact, I have seen this behaviour on many websites.
While this does not assist with your use-case of sending traffic via your VPN connection to the Internet, at least it explains why it is occurring.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论