Using AWS Fiewall with AWS NLB

0

Hi All,

I've a requirement to protect resources behind an internet exposed NLB[EIP attached] using AWS Firewall. My NLB is in a public subnet, instances in a private subnet, attached to the NLB using a target group.

I need to allow traffic coming from specific third party public IPs to my backend instances behind the NLB[which is public]. In this scenario, my firewall subnet first filter incoming traffic, then forward to my NLB and NLB distributes the load between the EC2 instances which are part of my target group.

My query is - will my approach work as I described above? Yet to touch console to implement this. Any references would be helpful.

Thanks in advance SVen

5 Antworten
0
Akzeptierte Antwort

Yes, this it should work, see below blog. You can use IGW Ingress routing to insert AWS Network Firewall between IGW and NLB.

https://aws.amazon.com/blogs/networking-and-content-delivery/design-your-firewall-deployment-for-internet-ingress-traffic-flows/

profile pictureAWS
EXPERTE
beantwortet vor 8 Monaten
0

Seems the approach is to make sure to consider the following step. Virtual Private Cloud (VPC) set up with the necessary public and private subnets. Go to the AWS Firewall Manager console and create a new firewall. Define your firewall rules to allow traffic only from specific third-party public IPs. Configure the rule group associated with your firewall to allow traffic to your NLB's IP. Links for further help https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html

Waseem
beantwortet vor 8 Monaten
  • Thank you, this article really helped me a lot.

0

Thank you, let me try this on console tomorrow, will come back if I face any issues. Then I need to automate this. Have a great weekend.

SVen
beantwortet vor 8 Monaten
0
profile picture
EXPERTE
beantwortet vor 8 Monaten
0

Thanks for your suggestions.

this approached really worked - except one issue we are struggling to resolve. We placed an FTP solution[a linux VM placed in a private subnet, protected by an NLB in a public subnet attached with EIP, incoming traffic protected using AWS FW, NLB attached with an EIP, for business partners can connect from internet].

Here the issue is, secured FTP worked on port 22, but we need to access the FTP service on port 21 as well. 21 port on this Linux VM, accepting the connection, connection succeeds, but not able to retrieve the directories. There are two target groups created, one listening on 22 and another listening on 21 - both these ports are on the same single linux VM, successfully operating on 22, but 21 still failing.

Any pointers to resolve this would be of great help.

Thanks SVen

SVen
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen