开发者

Block outbound traffic on EC2

Is ther a way to configure EC2 Security Groups so that th开发者_如何学Cey do not allow specific types of outbound connectivity (such as making HTTP requests to the public internet)?


I don't believe so, no. You may have better luck on ServerFault, though.

AFAIK, EC2 security groups are only for accessing the server (eg, keypairs); any internal connectivity would probably have to be regulated through iptables.


Security Groups only let you specify allow rules.

To achieve what you're after you would remove the default All traffic/All protocols/All ports/0.0.0.0/0 rule.

This will effectively stop all outbound connections.

If you encounter issues with connectivity after this, add rules to explicitly allow what's needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜