0

Is it possible to setup an AWS EC2 security group to allow web traffic from only one country? If so, how?

Waldron
  • 33
  • 5
  • Please read the [FAQ](http://serverfault.com/faq) if you haven't already. –  Apr 16 '13 at 21:33
  • @kce - how is this against the FAQ? – EEAA Apr 16 '13 at 21:47
  • @EEAA Well, posting exact duplicates of your own question is, for one. – ceejayoz Apr 16 '13 at 22:22
  • @EEAA - In my opinion it's not (although the question is missing a lot of detail). His other question was closed (erroneously in my opinion) and this one already has another vote against it. I was just suggesting it seeing as he's a new user. –  Apr 16 '13 at 22:22
  • Ahh, dupe. Good catch. – EEAA Apr 16 '13 at 23:31
  • So this question (obviously a question) is a dup of the one that was closed as being NOT a question? Also, there is NO answer to the question there, instead I get "Why would you want to do that" and an answer that circumvents AWS. There IS an answer to the question here, however, which I will now try to mark as the correct answer. – Waldron Apr 18 '13 at 15:08

1 Answers1

2

Do you know all of that country's netblocks?

If so, then yes, it's possible, though it may take multiple groups, as there's a 100-rule limit per SG for classic EC2 and a 50-rule limit for VPC SGs.

Whether or not this is a good thing to do, though, is another question altogether.

EEAA
  • 108,414
  • 18
  • 172
  • 242