As per usual, the easiest fix is to re-write the web app properly. The REMOTE_ADDR is taken by PHP from the network layer below everything.
Otherwise you will have to patch your kernel and use the tproxy feature of Squid.
Amos -- Please be using Current Stable Squid 2.7.STABLE5 or 3.0.STABLE11 Current Beta Squid 3.1.0.3
I understand you and thanx.. But, I am using OpenBSD-PF. So Squid, can it provide linux-tproxy support for OpenBSD-PF ? I don't know ??
Regards,Mehmet CELIK