I am new to AWS that's why, I am asking this question. Is it possible in AWS network firewall to only allow the incoming traffic from outside that comes from a particular DNS. According to my knowledge, it's easily possible with IP address but the problem is that the IP address of the source does not remain same and is dynamic. I have also read in various posts that in security groups we also can not mention DNS and we can only mention IP addresses. I have also read that in AWS network firewall, it's also possible to block traffic for a particular domain that's generated from EC2 instance using firewall but is it possible the other way around? Is it possible to only allow the traffic of the particular DNS that's coming from the Internet gateway to the VPC using AWS network firewall. Can anyone guide me in this regard?

1

There are 1 best solutions below

0
On

This doesn't sound like something you can solve with any security measures available natively from AWS or any reverse-proxy solutions I know.

You are most likely going down a rabbit hole of solving a problem at the wrong abstraction layer.

Can you talk about the higher-order problem you are trying to solve? e.g., what types of clients are you expecting to hit the applications? Where will you collect their DNS names in the first place? Why not use authentication at the application layer (passwords, multi-factor, certificates) to authenticate the sources?