AWS NLB security group

0

Hello all!

I've been considering using a NLB, and was wondering if someone would be kind enough to answer the following questions:

Does AWS NLB have security group?

Can I attach security group to NLB?

How do I protect my AWS NLB?

Do Albs have security groups?

5 回答
2
Raiyan
已回答 9 个月前
profile picture
专家
已审核 2 个月前
1

The NLB itself doesn't have any security group. Instead, you control access using the security groups(s) attached to the EC2 instances. The source IP address is preserved, so you work with security group configuration (and other firewalls so to speak) as if the client had connected directly to your machine. The load balancer is kind of more transparent than in the ELB/ALB case. Refer https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-network-load-balancer.html for step-by-step instruction.

AWS
已回答 2 年前
  • Hi. "Source IP address is preserved" is true if the target group is an instance (and may be in other cases). But NLB masks the client's source IP address in the case of an ECS target. Therefore, the security group on the ECS cannot see the client's original IP address. How can I publish a TCP/UDP ECS service that is not available to everyone?

1

AWS Network Load Balancer does not support security groups today. You can use Amazon VPC NACLs, AWS Network Firewall, and/or a marketplace firewall with AWS Gateway Load Balancer to provide various levels of protection for your NLB. You can also use security groups on your targets if client IP preservation is enabled (see more here about when client IP preservation is supported)

Application Load Balancers do support security groups today.

For more information comparing ALB vs NLB, I suggest you check out this page.

AWS
专家
Scott
已回答 2 年前
0

NLB will connect to the IP of your machine ( any cloud or on-prem ), you must be using a software/tool like firewall or proxy already in your cloud / on-premise to protect the Virtual machines, you can still continue using that for the machine and in AWS NLB will act as only the load balancer with the provided algorithm/configurations

已回答 2 年前
0
profile picture
已回答 9 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则