AWS VPC Restrict outbound access to certain URL

▼魔方 西西 提交于 2020-01-15 14:12:47

问题


I am trying to restrict my outbound access for my VPC.

I would like to restrict the outbound access to certain URL but the security group only let you set IPs and no URL.

Is there any way to restrict outbound access by URL instead of IPs?


回答1:


The firewall does not resolve URLs. That would require a higher order firewall that is aware of the HTTP protocol contents. More Info on the OSI Model: http://en.wikipedia.org/wiki/OSI_model

The closest you will get with the network ACL's in VPC, is to resolve the domains you want to block to its IP addresses. However, this will block the entire site as well as any other domains that may also be hosted on the IP address. Also many sites will likely resolve to more than 1 IP address.

You may be able to install some kind of proxy/filter on the instances directly and handle the IP url filtering from there.



来源:https://stackoverflow.com/questions/21815989/aws-vpc-restrict-outbound-access-to-certain-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!