Proxy Protocol for NginX -
setup:
- my nginx server sitting behind reverse proxy , aws elb. im trying use fail2ban ban client ip accessing server.
research/trials (correct me if im wrong):
used x_forwarded_for client ip, able see in aws instance when tcpdump, it's saying source connection proxy (i've tried setting real_ip_header , still did not work)
x_forwarded_for vulnerable ip spoofing
i'm focusing on using https connections server
most proxy protocol configurations uses x_forwarded_for
question:
is there way implement proxy protocol without using x_forwarded_for?
when client ip, how terminate/ban connection (i'm thinking @ application layer if source ip going proxy)? maybe using fail2ban?
any guides or knowledge please send them way! appreciate it!
Comments
Post a Comment