Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ELB, Proxy Protocol and iptables

I have a setup where a server is front-ended by AWS ELB. I would like to filter traffic based on the source ip address using iptables possibly. I have enabled the proxy protocol on ELB. Is it possible to use iptables in conjunction with Proxy protocol?

like image 809
Cheezo Avatar asked Nov 09 '14 16:11

Cheezo


People also ask

What is proxy protocol in load balancer?

Proxy protocol is an internet protocol used to carry connection information from the source requesting the connection to the destination for which the connection was requested. Elastic Load Balancing uses proxy protocol version 1, which uses a human-readable header format.

Does ALB support proxy protocol?

NOTE: When using AWS load balancers, please be aware that you cannot use PROXY protocol with an Application Load Balancer (ALB). PROXY Protocol works on layer 4 (TCP) and the Application Load Balancer only works on layer 7.

Does ELB have public IP?

– EC2 instance that are connected to an ELB doesn't need to have public/elastic ip addresses. since it will receive traffic via the private ip address, which the elb will use to send traffic to it. However the ec2 still needs to be in a public subnet.


1 Answers

Cheezo. I'm not sure if this is possible, but I guess using AWS Security Group would be an easier solution.

Also, AWS Web Application Firewall might give you a hand.

Take a look at https://aws.amazon.com/waf/ and see if it helps.

Cheers,

like image 128
gfernandes Avatar answered Oct 08 '22 14:10

gfernandes