Closed thirdbyte closed 2 years ago
I've found and tested the solution for this.
Traffic Flow: Cloudflare --> Nginx --> Evilginx
To get actual client IP from cloudflare to nginx, refer: https://danielmiessler.com/blog/getting-real-ip-addresses-using-cloudflare-nginx-and-varnish/
To get actual client IP from nginx to evilginx, refer: https://github.com/thirdbyte/phish_infra/commit/d0a758acf31f340bfda0f1f00bfd3cd2f5dc2411
I've set up Evilginx behind Nginx and when I do 'sessions', it always shows the private IP of Nginx. Is there a way I can get Evilginx to log the IP from X-Real-IP header from Nginx?