It is well documented that amazon IPs change for load balancers as traffic goes up and down.
https://forums.aws.amazon.com/thread.jspa?threadID=32280
I came across a fix but I’m not sure it meets my needs.
http://brettic.us/code/php-codeigniter-remote-ip-from-load-balancer/#codesyntax_2
Since I can turn the load balancer on or off depending on traffic spikes I’m trying to find an optimal way to use $config[‘proxy_ips’] to support this.
I clearly can’t put an IP or list of IPs as I never know what they’ll be at any time. I was thinking of trying to edit the code to support a range looking for anything under 10.*
Any thoughts around this would be greatly appreciated.
I’m using CI v1.7.2