I\'m getting the following error on my Rails 4 application:
ActionDispatch::RemoteIp::IpSpoofAttackError: IP spoofing attack?! HTTP_CLIENT_IP="xx.xx.xx.
config.action_dispatch.ip_spoofing_check should work based on the calling chain for RemoteIp.
config.action_dispatch.ip_spoofing_check
You should be able to achieve the same effect by setting config.action_dispatch.trusted_proxies to a regex matching all IPv4 addresses.
config.action_dispatch.trusted_proxies