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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -