GRE Tunnel original client IP
At first: sorry if I am misunderstanding what a GRE tunnel does. I managed to succesfully set it up. The connection is working fine. I opened a webserver port with iptables.
However, when I do a REMOTE_ADDR with PHP, I get to see the IP-address of the tunnel (192.168.168.xx), not the IP-address of client (in this case, my IP). Let’s say I want to have the same thing as what X-Real-IP or X-Forwarded-For would do with a reverse proxy. Is this possible with a GRE Tunnel, or am I misunderstanding the concept?
Why not use a reverse proxy? Because the content is on a different server, which has some latency. It causes a slow website, so I’d rather serve it at once, if possible.