On 5/08/2015 7:16 p.m., Kazuhiro Asakura wrote: > Hello, > > I have a simple question about squid-3 "follow-x-forwarded-for" feature. > > I use "follow-x-forwarded-for" feature, and logged end point IP address. > Also, I created customized error page for end user. but, env %i of > error page does not be translate to end point IP address. More correctly it is the direct endpoint of the client TCP connection. Not the chain of multiple TCP connections, which may include NAT or other protocol translations between Squid and a user. > > I want to display the address of end point to error page. > If someone could suggest solution, I would really appreciate it. The easiest approach I think would be to add a javascript snippet in place of the %i code that locates the users IP address and displays it to them. This (2) is actually a lot more privacy-friendly for end users. Since you/Squid dont have to go digging into information about the internal network structure of their ISP just to display it. The requirement that Squid error pages be static HTML only applies to how they are generated as responses at the server (Squid) end. The page itself can reference external resources, or contains scripts the client (browser) end runs. > > Sorry my poor English. Not a problem. Quite good compared to some. HTH Amos _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users