Skip to content

True IP for Varnish #19

@b00gnish

Description

@b00gnish

Issue overview (quick description):

Varnish is not passing a true IP, and some sessions in Magento are being created with 127.0.0.1

Steps to reproduce issue:

  1. Checking the NGINX logs for https show that the True IP is working
  2. Checking the NGINX logs for http show that everything is logged as 127.0.0.1

Resulting behavior:

  1. Magento is creating sessions using the 127.0.0.1

Expected behavior:

Magento sessions have the customer's True IP

Additional information (software version & running environment):

Below setting is recommended

sub vcl_recv {
  unset req.http.X-Forwarded-For;
  set req.http.X-Forwarded-For = client.ip;
}

Metadata

Metadata

Assignees

Labels

bugSomething is not working as expectedenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions